pub enum DeclaredMutationSemantics {
NaturallyIdempotent,
IdempotencyKeyRequired,
TransactionLedgerRequired,
}Expand description
The explicit semantics declared by $mutationSemantics on a mutating leaf.
These variants are checked metadata describing each method’s retry semantics or activation prerequisite; the parser and the generated inventory enforce only that a well-formed declaration exists — the annotation itself does not implement enforcement.
Variants§
NaturallyIdempotent
Retrying the same intended operation is safe without extra machinery.
IdempotencyKeyRequired
Activation prerequisite: before retry is enabled, the method payload must carry a caller application idempotency key and the service must durably bind that key to the recorded result. This declaration does not establish that the key/result mechanism exists; activation must verify the method implementation.
TransactionLedgerRequired
Activation prerequisite: retry safety requires a separately claimed exactly-once-visible contract with atomic commit/fencing. This declaration does not establish that such a contract exists; activation must verify the method implementation.
Trait Implementations§
Source§impl Clone for DeclaredMutationSemantics
impl Clone for DeclaredMutationSemantics
Source§fn clone(&self) -> DeclaredMutationSemantics
fn clone(&self) -> DeclaredMutationSemantics
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 DeclaredMutationSemantics
impl Debug for DeclaredMutationSemantics
Source§impl PartialEq for DeclaredMutationSemantics
impl PartialEq for DeclaredMutationSemantics
Source§fn eq(&self, other: &DeclaredMutationSemantics) -> bool
fn eq(&self, other: &DeclaredMutationSemantics) -> bool
self and other values to be equal, and is used by ==.