pub enum DelegationStatus {
Pending,
Accepted,
InProgress,
Completed,
Rejected,
Failed,
}Expand description
Status of a delegation operation.
Variants§
Pending
Delegation is pending acceptance
Accepted
Delegation was accepted but not yet started
InProgress
Delegation work is in progress
Completed
Delegation was completed successfully
Rejected
Delegation was rejected
Failed
Delegation failed (timeout, error, etc.)
Implementations§
Source§impl DelegationStatus
impl DelegationStatus
Sourcepub fn from_db_str(s: &str) -> Result<Self, EnumParseError>
pub fn from_db_str(s: &str) -> Result<Self, EnumParseError>
Parse from database string representation.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if this is a terminal state (no further transitions possible).
Trait Implementations§
Source§impl Clone for DelegationStatus
impl Clone for DelegationStatus
Source§fn clone(&self) -> DelegationStatus
fn clone(&self) -> DelegationStatus
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 ComposeSchema for DelegationStatus
impl ComposeSchema for DelegationStatus
Source§impl Debug for DelegationStatus
impl Debug for DelegationStatus
Source§impl<'de> Deserialize<'de> for DelegationStatus
impl<'de> Deserialize<'de> for DelegationStatus
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 Display for DelegationStatus
impl Display for DelegationStatus
Source§impl FromStr for DelegationStatus
impl FromStr for DelegationStatus
Source§impl Hash for DelegationStatus
impl Hash for DelegationStatus
Source§impl PartialEq for DelegationStatus
impl PartialEq for DelegationStatus
Source§impl Serialize for DelegationStatus
impl Serialize for DelegationStatus
Source§impl ToSchema for DelegationStatus
impl ToSchema for DelegationStatus
impl Copy for DelegationStatus
impl Eq for DelegationStatus
impl StructuralPartialEq for DelegationStatus
Auto Trait Implementations§
impl Freeze for DelegationStatus
impl RefUnwindSafe for DelegationStatus
impl Send for DelegationStatus
impl Sync for DelegationStatus
impl Unpin for DelegationStatus
impl UnwindSafe for DelegationStatus
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
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
Compare self to
key and return true if they are equal.