[][src]Enum stripe::PaymentSource

pub enum PaymentSource {
    Card(Card),
    Source(Source),
    Account(Account),
    BankAccount(BankAccount),
    AlipayAccount(AlipayAccount),
}

A PaymentSource represents a payment method associated with a customer or charge. This value is usually returned as a subresource on another request.

Not to be confused with Source which represents a "generic" payment method returned by the Source::get (which could still be a credit card, etc) but is not necessarily attached to either a customer or charge.

Variants

Card(Card)
Source(Source)
Account(Account)
BankAccount(BankAccount)
AlipayAccount(AlipayAccount)

Trait Implementations

impl Clone for PaymentSource[src]

impl Debug for PaymentSource[src]

impl<'de> Deserialize<'de> for PaymentSource[src]

impl Object for PaymentSource[src]

type Id = PaymentSourceId

The canonical id type for this object.

impl Serialize for PaymentSource[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.