Enum stripe::PaymentSourceParams [−][src]
Expand description
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)
Tuple Fields
0: TokenId
Creates a payment method (e.g. card or bank account) from tokenized data, using a token typically received from Stripe Elements.
Source(SourceId)
Tuple Fields
0: SourceId
Attach an existing source to an existing customer or create a new customer from an existing source.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for PaymentSourceParams
impl Send for PaymentSourceParams
impl Sync for PaymentSourceParams
impl Unpin for PaymentSourceParams
impl UnwindSafe for PaymentSourceParams
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more