#[non_exhaustive]pub enum DeclineReason {
InsufficientFunds,
CardInactive,
CardBlocked,
InvalidCvc,
ScaNotAuthenticatedCardNotPresent,
StrongCustomerAuthenticationRequired,
AuthenticationRejectedByCardholder,
Other,
}
Expand description
The set of reasons for which a monzo transaction may be declined
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.
InsufficientFunds
Not enough funds in account to complete transaction
CardInactive
Monzo card is not active
CardBlocked
The monzo card has been blocked
InvalidCvc
Incorrect CVC code used
ScaNotAuthenticatedCardNotPresent
Strong Customer Authentication blocking ‘not present’ transaction
StrongCustomerAuthenticationRequired
Requires SCA
AuthenticationRejectedByCardholder
Transaction declined by the cardholder
Other
All other errors
Trait Implementations§
Source§impl Clone for DeclineReason
impl Clone for DeclineReason
Source§fn clone(&self) -> DeclineReason
fn clone(&self) -> DeclineReason
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 DeclineReason
impl Debug for DeclineReason
Source§impl<'de> Deserialize<'de> for DeclineReason
impl<'de> Deserialize<'de> for DeclineReason
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 PartialEq for DeclineReason
impl PartialEq for DeclineReason
impl Copy for DeclineReason
impl Eq for DeclineReason
impl StructuralPartialEq for DeclineReason
Auto Trait Implementations§
impl Freeze for DeclineReason
impl RefUnwindSafe for DeclineReason
impl Send for DeclineReason
impl Sync for DeclineReason
impl Unpin for DeclineReason
impl UnwindSafe for DeclineReason
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