pub struct CqrsCommand<T = AnyValue> {
pub id: String,
pub command_type: String,
pub payload: T,
pub aggregate_id: Option<String>,
pub correlation_id: Option<String>,
pub causation_id: Option<String>,
}Expand description
CqrsCommand data container.
Fields§
§id: Stringid field for id.
command_type: Stringcommand_type field for command type.
payload: Tpayload field for payload.
aggregate_id: Option<String>aggregate_id field for aggregate 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 CqrsCommand<T>
impl<T: Clone> Clone for CqrsCommand<T>
Source§fn clone(&self) -> CqrsCommand<T>
fn clone(&self) -> CqrsCommand<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 CqrsCommand<T>
impl<T: Debug> Debug for CqrsCommand<T>
Source§impl<T: PartialEq> PartialEq for CqrsCommand<T>
impl<T: PartialEq> PartialEq for CqrsCommand<T>
impl<T> StructuralPartialEq for CqrsCommand<T>
Auto Trait Implementations§
impl<T> Freeze for CqrsCommand<T>where
T: Freeze,
impl<T> RefUnwindSafe for CqrsCommand<T>where
T: RefUnwindSafe,
impl<T> Send for CqrsCommand<T>where
T: Send,
impl<T> Sync for CqrsCommand<T>where
T: Sync,
impl<T> Unpin for CqrsCommand<T>where
T: Unpin,
impl<T> UnsafeUnpin for CqrsCommand<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for CqrsCommand<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