pub struct MessageMetadata { /* private fields */ }Expand description
Metadata attached to every message envelope.
Implementations§
Source§impl MessageMetadata
impl MessageMetadata
Sourcepub const fn new(
message_id: MessageId,
workflow_id: WorkflowId,
execution: ExecutionMetadata,
route: MessageRoute,
) -> Self
pub const fn new( message_id: MessageId, workflow_id: WorkflowId, execution: ExecutionMetadata, route: MessageRoute, ) -> Self
Create metadata for one message envelope.
Sourcepub const fn message_id(&self) -> &MessageId
pub const fn message_id(&self) -> &MessageId
Identifier for this message.
Sourcepub const fn workflow_id(&self) -> &WorkflowId
pub const fn workflow_id(&self) -> &WorkflowId
Workflow associated with this message.
Sourcepub const fn execution(&self) -> &ExecutionMetadata
pub const fn execution(&self) -> &ExecutionMetadata
Execution metadata associated with this message.
Sourcepub const fn route(&self) -> &MessageRoute
pub const fn route(&self) -> &MessageRoute
Static route for this message.
Trait Implementations§
Source§impl Clone for MessageMetadata
impl Clone for MessageMetadata
Source§fn clone(&self) -> MessageMetadata
fn clone(&self) -> MessageMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessageMetadata
impl Debug for MessageMetadata
Source§impl PartialEq for MessageMetadata
impl PartialEq for MessageMetadata
Source§fn eq(&self, other: &MessageMetadata) -> bool
fn eq(&self, other: &MessageMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MessageMetadata
impl StructuralPartialEq for MessageMetadata
Auto Trait Implementations§
impl Freeze for MessageMetadata
impl RefUnwindSafe for MessageMetadata
impl Send for MessageMetadata
impl Sync for MessageMetadata
impl Unpin for MessageMetadata
impl UnsafeUnpin for MessageMetadata
impl UnwindSafe for MessageMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).