pub enum PaymentIntentState {
Draft,
PendingApproval,
Approved,
Executing,
Settled,
Rejected,
Cancelled,
}Expand description
State of an AWP payment intent.
Lifecycle: Draft → PendingApproval → Approved → Executing → Settled
Terminal states: Settled, Rejected, Cancelled.
Variants§
Draft
Initial state — intent created but not yet submitted.
PendingApproval
Awaiting owner approval (amount exceeds auto-approve threshold).
Approved
Owner approved — ready for execution.
Executing
Payment is being processed by the payment provider.
Settled
Payment completed successfully.
Rejected
Owner or policy rejected the payment.
Cancelled
Buyer or system cancelled the payment.
Implementations§
Source§impl PaymentIntentState
impl PaymentIntentState
Sourcepub fn is_terminal(self) -> bool
pub fn is_terminal(self) -> bool
Whether this is a terminal state (no further transitions allowed).
Trait Implementations§
Source§impl Clone for PaymentIntentState
impl Clone for PaymentIntentState
Source§fn clone(&self) -> PaymentIntentState
fn clone(&self) -> PaymentIntentState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PaymentIntentState
impl Debug for PaymentIntentState
Source§impl<'de> Deserialize<'de> for PaymentIntentState
impl<'de> Deserialize<'de> for PaymentIntentState
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 PaymentIntentState
impl Display for PaymentIntentState
Source§impl Hash for PaymentIntentState
impl Hash for PaymentIntentState
Source§impl PartialEq for PaymentIntentState
impl PartialEq for PaymentIntentState
Source§fn eq(&self, other: &PaymentIntentState) -> bool
fn eq(&self, other: &PaymentIntentState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaymentIntentState
impl Serialize for PaymentIntentState
impl Copy for PaymentIntentState
impl Eq for PaymentIntentState
impl StructuralPartialEq for PaymentIntentState
Auto Trait Implementations§
impl Freeze for PaymentIntentState
impl RefUnwindSafe for PaymentIntentState
impl Send for PaymentIntentState
impl Sync for PaymentIntentState
impl Unpin for PaymentIntentState
impl UnsafeUnpin for PaymentIntentState
impl UnwindSafe for PaymentIntentState
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