Struct stripe::CreateToken [−][src]
pub struct CreateToken<'a> {
pub account: Option<Box<CreateTokenAccount>>,
pub customer: Option<CustomerId>,
pub cvc_update: Option<Box<CreateTokenCvcUpdate>>,
pub expand: &'a [&'a str],
pub person: Option<Box<CreateTokenPerson>>,
pub pii: Option<Box<CreateTokenPii>>,
}
Expand description
The parameters for Token::create
.
Fields
account: Option<Box<CreateTokenAccount>>
Information for the account this token will represent.
customer: Option<CustomerId>
The customer (owned by the application’s account) for which to create a token.
This can be used only with an OAuth access token or Stripe-Account header. For more details, see Cloning Saved Payment Methods.
cvc_update: Option<Box<CreateTokenCvcUpdate>>
The updated CVC value this token will represent.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
person: Option<Box<CreateTokenPerson>>
Information for the person this token will represent.
pii: Option<Box<CreateTokenPii>>
The PII this token will represent.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for CreateToken<'a>
impl<'a> Send for CreateToken<'a>
impl<'a> Sync for CreateToken<'a>
impl<'a> Unpin for CreateToken<'a>
impl<'a> UnwindSafe for CreateToken<'a>
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