pub struct CqrsQueuedCommandPayload<TCommand> {
pub kind: String,
pub command: CqrsCommand<TCommand>,
pub idempotency_key: Option<String>,
pub source_refs: Vec<String>,
pub policy_refs: Vec<String>,
pub actor_refs: Vec<String>,
pub audit_refs: Vec<String>,
pub metadata: Option<String>,
}Expand description
CqrsQueuedCommandPayload data container.
Fields§
§kind: Stringkind field for kind.
command: CqrsCommand<TCommand>command field for command.
idempotency_key: Option<String>idempotency_key field for idempotency key.
source_refs: Vec<String>source_refs field for source refs.
policy_refs: Vec<String>policy_refs field for policy refs.
actor_refs: Vec<String>actor_refs field for actor refs.
audit_refs: Vec<String>audit_refs field for audit refs.
metadata: Option<String>metadata field for metadata.
Implementations§
Source§impl<TCommand> CqrsQueuedCommandPayload<TCommand>
impl<TCommand> CqrsQueuedCommandPayload<TCommand>
Sourcepub fn new(command: CqrsCommand<TCommand>) -> Self
pub fn new(command: CqrsCommand<TCommand>) -> Self
Creates or computes new.
Trait Implementations§
Source§impl<TCommand: Clone> Clone for CqrsQueuedCommandPayload<TCommand>
impl<TCommand: Clone> Clone for CqrsQueuedCommandPayload<TCommand>
Source§fn clone(&self) -> CqrsQueuedCommandPayload<TCommand>
fn clone(&self) -> CqrsQueuedCommandPayload<TCommand>
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<TCommand: Debug> Debug for CqrsQueuedCommandPayload<TCommand>
impl<TCommand: Debug> Debug for CqrsQueuedCommandPayload<TCommand>
Source§impl<TCommand: PartialEq> PartialEq for CqrsQueuedCommandPayload<TCommand>
impl<TCommand: PartialEq> PartialEq for CqrsQueuedCommandPayload<TCommand>
Source§fn eq(&self, other: &CqrsQueuedCommandPayload<TCommand>) -> bool
fn eq(&self, other: &CqrsQueuedCommandPayload<TCommand>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<TCommand> StructuralPartialEq for CqrsQueuedCommandPayload<TCommand>
Auto Trait Implementations§
impl<TCommand> Freeze for CqrsQueuedCommandPayload<TCommand>where
TCommand: Freeze,
impl<TCommand> RefUnwindSafe for CqrsQueuedCommandPayload<TCommand>where
TCommand: RefUnwindSafe,
impl<TCommand> Send for CqrsQueuedCommandPayload<TCommand>where
TCommand: Send,
impl<TCommand> Sync for CqrsQueuedCommandPayload<TCommand>where
TCommand: Sync,
impl<TCommand> Unpin for CqrsQueuedCommandPayload<TCommand>where
TCommand: Unpin,
impl<TCommand> UnsafeUnpin for CqrsQueuedCommandPayload<TCommand>where
TCommand: UnsafeUnpin,
impl<TCommand> UnwindSafe for CqrsQueuedCommandPayload<TCommand>where
TCommand: 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