pub struct InteractionMutationContext {
pub authority_binding: String,
pub expected_revision: u64,
pub idempotency_key: String,
pub command_fingerprint: String,
pub occurred_at: DateTime<Utc>,
pub host_event_publication: Option<PendingHostEventPublication>,
}Expand description
Shared authority, concurrency, idempotency, and publication evidence for an interaction command.
Fields§
Trusted authority binding owning the idempotency namespace.
expected_revision: u64Expected current revision of the authoritative interaction record.
idempotency_key: StringIdempotency key scoped to authority_binding.
command_fingerprint: StringCanonical fingerprint of the normalized authorized command.
occurred_at: DateTime<Utc>Authoritative mutation timestamp.
host_event_publication: Option<PendingHostEventPublication>Optional product-neutral host event committed with state and receipt.
Implementations§
Source§impl InteractionMutationContext
impl InteractionMutationContext
Sourcepub fn validate(&self) -> SessionStoreResult<()>
pub fn validate(&self) -> SessionStoreResult<()>
Validate shared mutation evidence.
§Errors
Returns an error for empty authority/idempotency evidence, revision zero, or an invalid caller-supplied host-event publication.
Trait Implementations§
Source§impl Clone for InteractionMutationContext
impl Clone for InteractionMutationContext
Source§fn clone(&self) -> InteractionMutationContext
fn clone(&self) -> InteractionMutationContext
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 InteractionMutationContext
impl Debug for InteractionMutationContext
impl Eq for InteractionMutationContext
impl StructuralPartialEq for InteractionMutationContext
Auto Trait Implementations§
impl Freeze for InteractionMutationContext
impl RefUnwindSafe for InteractionMutationContext
impl Send for InteractionMutationContext
impl Sync for InteractionMutationContext
impl Unpin for InteractionMutationContext
impl UnsafeUnpin for InteractionMutationContext
impl UnwindSafe for InteractionMutationContext
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