pub enum MutationSemantics {
NaturallyIdempotent,
IdempotencyKeyRequired,
TransactionLedgerRequired,
}Expand description
The generated application policy a mutating method declares (v16 §4.8) — distinct from request-proof replay admission. The declaration metadata describes each method’s retry semantics or activation prerequisite; the annotation itself does not implement enforcement.
Variants§
NaturallyIdempotent
Retrying the method with the same intent is safe without extra machinery.
IdempotencyKeyRequired
Activation prerequisite: before retry is enabled for the method, its payload must carry a caller application idempotency key and the service must durably bind that key to the recorded result so the retry returns it. This declaration does not establish that the key/result mechanism exists; activation must verify the method implementation.
TransactionLedgerRequired
Reserved for a separately claimed exactly-once-visible contract: the mutation commits with the ledger in one transaction or an equivalent fencing protocol. The declaration is metadata; the claimed contract must exist per method before this label is used.
Trait Implementations§
Source§impl Clone for MutationSemantics
impl Clone for MutationSemantics
Source§fn clone(&self) -> MutationSemantics
fn clone(&self) -> MutationSemantics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MutationSemantics
impl Debug for MutationSemantics
Source§impl PartialEq for MutationSemantics
impl PartialEq for MutationSemantics
Source§fn eq(&self, other: &MutationSemantics) -> bool
fn eq(&self, other: &MutationSemantics) -> bool
self and other values to be equal, and is used by ==.impl Copy for MutationSemantics
impl Eq for MutationSemantics
impl StructuralPartialEq for MutationSemantics
Auto Trait Implementations§
impl Freeze for MutationSemantics
impl RefUnwindSafe for MutationSemantics
impl Send for MutationSemantics
impl Sync for MutationSemantics
impl Unpin for MutationSemantics
impl UnsafeUnpin for MutationSemantics
impl UnwindSafe for MutationSemantics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more