pub enum Idempotency {
None,
Key(String),
}Expand description
Optional idempotency declaration for side-effecting states. Key semantics: stable value used for dedupe (e.g., tx intent hash).
Variants§
None
The state does not declare an idempotency key.
Key(String)
Stable key used to deduplicate externally visible effects.
Trait Implementations§
Source§impl Clone for Idempotency
impl Clone for Idempotency
Source§fn clone(&self) -> Idempotency
fn clone(&self) -> Idempotency
Returns a duplicate of the value. Read more
1.0.0 · 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 Idempotency
impl Debug for Idempotency
Source§impl<'de> Deserialize<'de> for Idempotency
impl<'de> Deserialize<'de> for Idempotency
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 PartialEq for Idempotency
impl PartialEq for Idempotency
Source§impl Serialize for Idempotency
impl Serialize for Idempotency
impl Eq for Idempotency
impl StructuralPartialEq for Idempotency
Auto Trait Implementations§
impl Freeze for Idempotency
impl RefUnwindSafe for Idempotency
impl Send for Idempotency
impl Sync for Idempotency
impl Unpin for Idempotency
impl UnsafeUnpin for Idempotency
impl UnwindSafe for Idempotency
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