#[non_exhaustive]pub enum ChargeStatus {
Failed,
Pending,
Succeeded,
Unknown(String),
}Expand description
The status of the payment is either succeeded, pending, or failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Failed
Pending
Succeeded
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for ChargeStatus
impl Clone for ChargeStatus
Source§fn clone(&self) -> ChargeStatus
fn clone(&self) -> ChargeStatus
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 ChargeStatus
impl Debug for ChargeStatus
Source§impl Deserialize for ChargeStatus
impl Deserialize for ChargeStatus
Source§impl Display for ChargeStatus
impl Display for ChargeStatus
Source§impl FromStr for ChargeStatus
impl FromStr for ChargeStatus
Source§impl FromValueOpt for ChargeStatus
impl FromValueOpt for ChargeStatus
fn from_value(v: Value) -> Option<Self>
Source§impl PartialEq for ChargeStatus
impl PartialEq for ChargeStatus
impl Eq for ChargeStatus
impl StructuralPartialEq for ChargeStatus
Auto Trait Implementations§
impl Freeze for ChargeStatus
impl RefUnwindSafe for ChargeStatus
impl Send for ChargeStatus
impl Sync for ChargeStatus
impl Unpin for ChargeStatus
impl UnwindSafe for ChargeStatus
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