[−][src]Enum stripe::PaymentSourceParams
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.
Card(CardParams<'a>)
Creates a Card
payment method from the full card information
(e.g. card number, expiration, etc).
You usually want to use a TokenId
received from
Stripe Elements
instead.
BankAccount(BankAccountParams<'a>)
Creates a BankAccount
payment method from the full bank information
(e.g. account number, expiration, etc).
You usually want to use a TokenId
received from
Stripe Elements
instead.
Trait Implementations
impl<'a> Clone for PaymentSourceParams<'a>
[src]
fn clone(&self) -> PaymentSourceParams<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Debug for PaymentSourceParams<'a>
[src]
impl<'a> Serialize for PaymentSourceParams<'a>
[src]
impl<'de> Deserialize<'de> for PaymentSourceParams<'de>
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Auto Trait Implementations
impl<'a> Send for PaymentSourceParams<'a>
impl<'a> Sync for PaymentSourceParams<'a>
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self