#[non_exhaustive]pub enum CancellationDetailsReason {
CancellationRequested,
PaymentDisputed,
PaymentFailed,
Unknown(String),
}Expand description
Why this subscription was canceled.
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.
CancellationRequested
PaymentDisputed
PaymentFailed
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for CancellationDetailsReason
impl Clone for CancellationDetailsReason
Source§fn clone(&self) -> CancellationDetailsReason
fn clone(&self) -> CancellationDetailsReason
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 CancellationDetailsReason
impl Debug for CancellationDetailsReason
Source§impl Display for CancellationDetailsReason
impl Display for CancellationDetailsReason
Source§impl FromStr for CancellationDetailsReason
impl FromStr for CancellationDetailsReason
Source§impl FromValueOpt for CancellationDetailsReason
impl FromValueOpt for CancellationDetailsReason
fn from_value(v: Value) -> Option<Self>
impl Eq for CancellationDetailsReason
impl StructuralPartialEq for CancellationDetailsReason
Auto Trait Implementations§
impl Freeze for CancellationDetailsReason
impl RefUnwindSafe for CancellationDetailsReason
impl Send for CancellationDetailsReason
impl Sync for CancellationDetailsReason
impl Unpin for CancellationDetailsReason
impl UnwindSafe for CancellationDetailsReason
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