pub enum ApprovalStatus {
Pending,
Succeeded,
Failed,
}Expand description
The status of an approval attempt:
- `pending`: the submitted source is being bound and verified.
- `succeeded`: the mandate's `source` is attached and its status becomes
`approval_succeeded`.
- `failed`: the attempt could not be completed (see `error`). The mandate's
status becomes `approval_failed`; submit a new approval to retry (which
moves it back to `approval_pending`).JSON schema
{
"description": "The status of an approval attempt:\n\n- `pending`: the submitted source is being bound and verified.\n\n- `succeeded`: the mandate's `source` is attached and its status becomes\n `approval_succeeded`.\n\n\n- `failed`: the attempt could not be completed (see `error`). The mandate's\n status becomes `approval_failed`; submit a new approval to retry (which\n moves it back to `approval_pending`).",
"examples": [
"succeeded"
],
"type": "string",
"enum": [
"pending",
"succeeded",
"failed"
]
}Variants§
Trait Implementations§
Source§impl Clone for ApprovalStatus
impl Clone for ApprovalStatus
impl Copy for ApprovalStatus
Source§impl Debug for ApprovalStatus
impl Debug for ApprovalStatus
Source§impl<'de> Deserialize<'de> for ApprovalStatus
impl<'de> Deserialize<'de> for ApprovalStatus
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 ApprovalStatus
impl Display for ApprovalStatus
impl Eq for ApprovalStatus
Source§impl From<&ApprovalStatus> for ApprovalStatus
impl From<&ApprovalStatus> for ApprovalStatus
Source§fn from(value: &ApprovalStatus) -> Self
fn from(value: &ApprovalStatus) -> Self
Converts to this type from the input type.
Source§impl FromStr for ApprovalStatus
impl FromStr for ApprovalStatus
Source§impl Hash for ApprovalStatus
impl Hash for ApprovalStatus
Source§impl Ord for ApprovalStatus
impl Ord for ApprovalStatus
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ApprovalStatus
impl PartialEq for ApprovalStatus
Source§impl PartialOrd for ApprovalStatus
impl PartialOrd for ApprovalStatus
Source§impl Serialize for ApprovalStatus
impl Serialize for ApprovalStatus
impl StructuralPartialEq for ApprovalStatus
Source§impl TryFrom<&String> for ApprovalStatus
impl TryFrom<&String> for ApprovalStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for ApprovalStatus
impl TryFrom<&str> for ApprovalStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for ApprovalStatus
impl TryFrom<String> for ApprovalStatus
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for ApprovalStatus
impl RefUnwindSafe for ApprovalStatus
impl Send for ApprovalStatus
impl Sync for ApprovalStatus
impl Unpin for ApprovalStatus
impl UnsafeUnpin for ApprovalStatus
impl UnwindSafe for ApprovalStatus
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.