#[non_exhaustive]pub enum ErrorCode {
Show 79 variants
AccountAlreadyExists,
AccountCountryInvalidAddress,
AccountInvalid,
AccountNumberInvalid,
AlipayUpgradeRequired,
AmountTooLarge,
AmountTooSmall,
ApiKeyExpired,
BalanceInsufficient,
BankAccountExists,
BankAccountUnusable,
BankAccountUnverified,
BankAccountVerificationFailed,
BitcoinUpgradeRequired,
CardDeclined,
ChargeAlreadyCaptured,
ChargeAlreadyRefunded,
ChargeDisputed,
ChargeExpiredForCapture,
CountryUnsupported,
CouponExpired,
CustomerMaxSubscriptions,
EmailInvalid,
ExpiredCard,
IdempotencyKeyInUse,
IncorrectAddress,
IncorrectCvc,
IncorrectNumber,
IncorrectZip,
InstantPayoutsUnsupported,
InvalidCardType,
InvalidChargeAmount,
InvalidCvc,
InvalidExpiryMonth,
InvalidExpiryYear,
InvalidNumber,
InvalidSourceUsage,
InvoiceNoCustomerLineItems,
InvoiceNoSubscriptionLineItems,
InvoiceNotEditable,
InvoiceUpcomingNone,
LivemodeMismatch,
Missing,
OrderCreationFailed,
OrderRequiredSettings,
OrderStatusInvalid,
OrderUpstreamTimeout,
OutOfInventory,
ParameterInvalidEmpty,
ParameterInvalidInteger,
ParameterInvalidStringBlank,
ParameterInvalidStringEmpty,
ParameterMissing,
ParameterUnknown,
PaymentMethodUnactivated,
PaymentIntentUnexpectedState,
PayoutsNotAllowed,
PlatformApiKeyExpired,
PostalCodeInvalid,
ProcessingError,
ProductInactive,
RateLimit,
ResourceAlreadyExists,
ResourceMissing,
RoutingNumberInvalid,
SecretKeyRequired,
SepaUnsupportedAccount,
ShippingCalculationFailed,
SkuInactive,
StateUnsupported,
TaxIdInvalid,
TaxesCalculationFailed,
TestmodeChargesOnly,
TlsVersionUnsupported,
TokenAlreadyUsed,
TokenInUse,
TransfersNotAllowed,
UpstreamOrderCreationFailed,
UrlInvalid,
}
Expand description
The list of possible values for a RequestError’s code.
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.
AccountAlreadyExists
AccountCountryInvalidAddress
AccountInvalid
AccountNumberInvalid
AlipayUpgradeRequired
AmountTooLarge
AmountTooSmall
ApiKeyExpired
BalanceInsufficient
BankAccountExists
BankAccountUnusable
BankAccountUnverified
BankAccountVerificationFailed
BitcoinUpgradeRequired
CardDeclined
ChargeAlreadyCaptured
ChargeAlreadyRefunded
ChargeDisputed
ChargeExpiredForCapture
CountryUnsupported
CouponExpired
CustomerMaxSubscriptions
EmailInvalid
ExpiredCard
IdempotencyKeyInUse
IncorrectAddress
IncorrectCvc
IncorrectNumber
IncorrectZip
InstantPayoutsUnsupported
InvalidCardType
InvalidChargeAmount
InvalidCvc
InvalidExpiryMonth
InvalidExpiryYear
InvalidNumber
InvalidSourceUsage
InvoiceNoCustomerLineItems
InvoiceNoSubscriptionLineItems
InvoiceNotEditable
InvoiceUpcomingNone
LivemodeMismatch
Missing
OrderCreationFailed
OrderRequiredSettings
OrderStatusInvalid
OrderUpstreamTimeout
OutOfInventory
ParameterInvalidEmpty
ParameterInvalidInteger
ParameterInvalidStringBlank
ParameterInvalidStringEmpty
ParameterMissing
ParameterUnknown
PaymentMethodUnactivated
PaymentIntentUnexpectedState
PayoutsNotAllowed
PlatformApiKeyExpired
PostalCodeInvalid
ProcessingError
ProductInactive
RateLimit
ResourceAlreadyExists
ResourceMissing
RoutingNumberInvalid
SecretKeyRequired
SepaUnsupportedAccount
ShippingCalculationFailed
SkuInactive
StateUnsupported
TaxIdInvalid
TaxesCalculationFailed
TestmodeChargesOnly
TlsVersionUnsupported
TokenAlreadyUsed
TokenInUse
TransfersNotAllowed
UpstreamOrderCreationFailed
UrlInvalid
Trait Implementations§
source§impl<'de> Deserialize<'de> for ErrorCode
impl<'de> Deserialize<'de> for ErrorCode
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 ErrorCode
impl PartialEq for ErrorCode
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.