pub struct ConversationId(/* private fields */);Expand description
Groups every message in one business conversation. Defaults to the id of the message
that starts it (see crate::EnvelopeBuilder::build), so an un-correlated message is
the root of its own conversation.
Implementations§
Source§impl ConversationId
impl ConversationId
Sourcepub const UNSET: Self
pub const UNSET: Self
The reserved “not yet rooted” sentinel: the nil UUID. CorrelationMetadata’s
default uses it, and EnvelopeBuilder::build replaces it with the envelope’s own id —
conversation rooting is decided by this value, not by which builder setter was called.
Self::new/Self::default mint a fresh UUIDv7 and are therefore never UNSET. An
application SHALL NOT use the nil UUID as a real conversation id.
Sourcepub const fn is_unset(&self) -> bool
pub const fn is_unset(&self) -> bool
true when this id is Self::UNSET.
Trait Implementations§
Source§impl Clone for ConversationId
impl Clone for ConversationId
Source§fn clone(&self) -> ConversationId
fn clone(&self) -> ConversationId
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 moreimpl Copy for ConversationId
Source§impl Debug for ConversationId
impl Debug for ConversationId
Source§impl Default for ConversationId
impl Default for ConversationId
Source§impl Display for ConversationId
impl Display for ConversationId
impl Eq for ConversationId
Source§impl Hash for ConversationId
impl Hash for ConversationId
Source§impl Ord for ConversationId
impl Ord for ConversationId
Source§fn cmp(&self, other: &ConversationId) -> Ordering
fn cmp(&self, other: &ConversationId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ConversationId
impl PartialEq for ConversationId
Source§impl PartialOrd for ConversationId
impl PartialOrd for ConversationId
impl StructuralPartialEq for ConversationId
Auto Trait Implementations§
impl Freeze for ConversationId
impl RefUnwindSafe for ConversationId
impl Send for ConversationId
impl Sync for ConversationId
impl Unpin for ConversationId
impl UnsafeUnpin for ConversationId
impl UnwindSafe for ConversationId
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