pub struct CausationId(/* private fields */);Expand description
Points to the event or command that directly caused this event.
Implementations§
Trait Implementations§
Source§impl Clone for CausationId
impl Clone for CausationId
Source§fn clone(&self) -> CausationId
fn clone(&self) -> CausationId
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 CausationId
Source§impl Debug for CausationId
impl Debug for CausationId
Source§impl Default for CausationId
impl Default for CausationId
Source§impl<'de> Deserialize<'de> for CausationId
impl<'de> Deserialize<'de> for CausationId
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 Display for CausationId
impl Display for CausationId
impl Eq for CausationId
Source§impl From<CorrelationId> for CausationId
impl From<CorrelationId> for CausationId
Source§fn from(id: CorrelationId) -> Self
fn from(id: CorrelationId) -> Self
Treat a correlation root as the direct cause (useful for first events).
Source§impl From<EventId> for CausationId
impl From<EventId> for CausationId
Source§impl From<Uuid> for CausationId
impl From<Uuid> for CausationId
Source§impl Hash for CausationId
impl Hash for CausationId
Source§impl Ord for CausationId
impl Ord for CausationId
Source§fn cmp(&self, other: &CausationId) -> Ordering
fn cmp(&self, other: &CausationId) -> 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
Source§impl PartialEq for CausationId
impl PartialEq for CausationId
Source§fn eq(&self, other: &CausationId) -> bool
fn eq(&self, other: &CausationId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CausationId
impl PartialOrd for CausationId
Source§impl Serialize for CausationId
impl Serialize for CausationId
impl StructuralPartialEq for CausationId
Auto Trait Implementations§
impl Freeze for CausationId
impl RefUnwindSafe for CausationId
impl Send for CausationId
impl Sync for CausationId
impl Unpin for CausationId
impl UnsafeUnpin for CausationId
impl UnwindSafe for CausationId
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