pub struct ProcessCommand<T = AnyValue> {
pub id: String,
pub command_type: String,
pub payload: T,
pub process_id: Option<String>,
pub correlation_id: Option<String>,
pub causation_id: Option<String>,
}Expand description
ProcessCommand data container.
Fields§
§id: Stringid field for id.
command_type: Stringcommand_type field for command type.
payload: Tpayload field for payload.
process_id: Option<String>process_id field for process id.
correlation_id: Option<String>correlation_id field for correlation id.
causation_id: Option<String>causation_id field for causation id.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for ProcessCommand<T>
impl<T: Clone> Clone for ProcessCommand<T>
Source§fn clone(&self) -> ProcessCommand<T>
fn clone(&self) -> ProcessCommand<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for ProcessCommand<T>
impl<T: Debug> Debug for ProcessCommand<T>
Source§impl<T: PartialEq> PartialEq for ProcessCommand<T>
impl<T: PartialEq> PartialEq for ProcessCommand<T>
impl<T> StructuralPartialEq for ProcessCommand<T>
Auto Trait Implementations§
impl<T> Freeze for ProcessCommand<T>where
T: Freeze,
impl<T> RefUnwindSafe for ProcessCommand<T>where
T: RefUnwindSafe,
impl<T> Send for ProcessCommand<T>where
T: Send,
impl<T> Sync for ProcessCommand<T>where
T: Sync,
impl<T> Unpin for ProcessCommand<T>where
T: Unpin,
impl<T> UnsafeUnpin for ProcessCommand<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ProcessCommand<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more