[][src]Enum stripe::PaymentSourceParams

pub enum PaymentSourceParams {
    Token(TokenId),
    Source(SourceId),
}

A PaymentSourceParams represents all of the supported ways that can be used to creating a new customer with a payment method or creating a payment method directly for a customer via Customer::attach_source.

Not to be confused with SourceParams which is used by Source::create to create a source that is not necessarily attached to a customer.

Variants

Token(TokenId)

Creates a payment method (e.g. card or bank account) from tokenized data, using a token typically received from Stripe Elements.

Source(SourceId)

Attach an existing source to an existing customer or create a new customer from an existing source.

Trait Implementations

impl Clone for PaymentSourceParams[src]

impl Debug for PaymentSourceParams[src]

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

impl<'a> Serialize for PaymentSourceParams[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.