#[non_exhaustive]pub enum SourceType {
Show 20 variants
AchCreditTransfer,
AchDebit,
AcssDebit,
Alipay,
AuBecsDebit,
Bancontact,
Card,
CardPresent,
Eps,
Giropay,
Ideal,
Klarna,
Multibanco,
P24,
SepaCreditTransfer,
SepaDebit,
Sofort,
ThreeDSecure,
Wechat,
Unknown(String),
}
Expand description
The type
of the source.
The type
is a payment method, one of ach_credit_transfer
, ach_debit
, alipay
, bancontact
, card
, card_present
, eps
, giropay
, ideal
, multibanco
, klarna
, p24
, sepa_debit
, sofort
, three_d_secure
, or wechat
.
An additional hash is included on the source with a name matching this value.
It contains additional information specific to the payment method used.
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.
AchCreditTransfer
AchDebit
AcssDebit
Alipay
AuBecsDebit
Bancontact
Card
CardPresent
Eps
Giropay
Ideal
Klarna
Multibanco
P24
SepaCreditTransfer
SepaDebit
Sofort
ThreeDSecure
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for SourceType
impl Clone for SourceType
Source§fn clone(&self) -> SourceType
fn clone(&self) -> SourceType
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 SourceType
impl Debug for SourceType
Source§impl Deserialize for SourceType
impl Deserialize for SourceType
Source§impl Display for SourceType
impl Display for SourceType
Source§impl FromStr for SourceType
impl FromStr for SourceType
Source§impl FromValueOpt for SourceType
impl FromValueOpt for SourceType
fn from_value(v: Value) -> Option<Self>
Source§impl PartialEq for SourceType
impl PartialEq for SourceType
impl Eq for SourceType
impl StructuralPartialEq for SourceType
Auto Trait Implementations§
impl Freeze for SourceType
impl RefUnwindSafe for SourceType
impl Send for SourceType
impl Sync for SourceType
impl Unpin for SourceType
impl UnwindSafe for SourceType
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