pub enum CommitmentContent {
Action {
description: String,
reversible: bool,
},
State {
description: String,
duration: Option<u64>,
},
Boundary {
description: String,
},
Result {
description: String,
deadline: Option<TemporalAnchor>,
},
}Expand description
What is the Resonator committing to?
Variants§
Action
Commitment to perform an action
State
Commitment to maintain a state
Boundary
Commitment to respect a boundary
Result
Commitment to deliver a result
Trait Implementations§
Source§impl Clone for CommitmentContent
impl Clone for CommitmentContent
Source§fn clone(&self) -> CommitmentContent
fn clone(&self) -> CommitmentContent
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 CommitmentContent
impl Debug for CommitmentContent
Source§impl<'de> Deserialize<'de> for CommitmentContent
impl<'de> Deserialize<'de> for CommitmentContent
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 CommitmentContent
impl RefUnwindSafe for CommitmentContent
impl Send for CommitmentContent
impl Sync for CommitmentContent
impl Unpin for CommitmentContent
impl UnwindSafe for CommitmentContent
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