pub struct MutationContext {
pub actor: String,
pub origin: String,
pub correlation_id: Uuid,
pub causation_id: Option<Uuid>,
pub hop_count: u8,
pub idempotency_key: Option<String>,
}Fields§
§actor: String§origin: String§correlation_id: Uuid§causation_id: Option<Uuid>§hop_count: u8§idempotency_key: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for MutationContext
impl Clone for MutationContext
Source§fn clone(&self) -> MutationContext
fn clone(&self) -> MutationContext
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 MutationContext
impl Debug for MutationContext
Source§impl<'de> Deserialize<'de> for MutationContext
impl<'de> Deserialize<'de> for MutationContext
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
Auto Trait Implementations§
impl Freeze for MutationContext
impl RefUnwindSafe for MutationContext
impl Send for MutationContext
impl Sync for MutationContext
impl Unpin for MutationContext
impl UnsafeUnpin for MutationContext
impl UnwindSafe for MutationContext
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