pub enum IntentStatus {
Proposed,
Authorized,
InProgress,
Completed,
Failed,
Blocked,
}Expand description
Valid states for an intent’s lifecycle.
State machine: Proposed → Authorized → InProgress → Completed │ │ → Failed │ └─→ Blocked → InProgress └─→ (rejected) → Failed
Variants§
Proposed
Intent has been declared.
Authorized
Authority has approved execution.
InProgress
Agent(s) are actively working.
Completed
Work is done, resolution filed.
Failed
Agent could not fulfill the intent.
Blocked
Waiting on external dependency.
Trait Implementations§
Source§impl Clone for IntentStatus
impl Clone for IntentStatus
Source§impl Debug for IntentStatus
impl Debug for IntentStatus
Source§impl<'de> Deserialize<'de> for IntentStatus
impl<'de> Deserialize<'de> for IntentStatus
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
impl Eq for IntentStatus
Source§impl Hash for IntentStatus
impl Hash for IntentStatus
Source§impl PartialEq for IntentStatus
impl PartialEq for IntentStatus
Source§impl Serialize for IntentStatus
impl Serialize for IntentStatus
impl StructuralPartialEq for IntentStatus
Auto Trait Implementations§
impl Freeze for IntentStatus
impl RefUnwindSafe for IntentStatus
impl Send for IntentStatus
impl Sync for IntentStatus
impl Unpin for IntentStatus
impl UnsafeUnpin for IntentStatus
impl UnwindSafe for IntentStatus
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