pub struct CommandEnvelope {
pub command_name: CommandNameOwned,
pub command: SerializedCommand,
pub correlation_id: CorrelationId,
pub message_id: MessageId,
pub causation_id: CausationId,
}Fields§
§command_name: CommandNameOwned§command: SerializedCommand§correlation_id: CorrelationId§message_id: MessageId§causation_id: CausationIdImplementations§
Source§impl CommandEnvelope
impl CommandEnvelope
pub fn try_into_command<C>(&self) -> Result<C, CommandEnvelopeError>where
C: Command,
Trait Implementations§
Source§impl Clone for CommandEnvelope
impl Clone for CommandEnvelope
Source§fn clone(&self) -> CommandEnvelope
fn clone(&self) -> CommandEnvelope
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 Debug for CommandEnvelope
impl Debug for CommandEnvelope
Source§impl<'de> Deserialize<'de> for CommandEnvelope
impl<'de> Deserialize<'de> for CommandEnvelope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CommandEnvelope
impl PartialEq for CommandEnvelope
Source§impl Selector<CommandEnvelope> for CommandSelector
impl Selector<CommandEnvelope> for CommandSelector
fn matches(&self, message: &CommandEnvelope) -> bool
Source§impl Serialize for CommandEnvelope
impl Serialize for CommandEnvelope
impl Eq for CommandEnvelope
impl StructuralPartialEq for CommandEnvelope
Auto Trait Implementations§
impl Freeze for CommandEnvelope
impl RefUnwindSafe for CommandEnvelope
impl Send for CommandEnvelope
impl Sync for CommandEnvelope
impl Unpin for CommandEnvelope
impl UnwindSafe for CommandEnvelope
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