Struct stripe::CreateToken
source · pub struct CreateToken<'a> {
pub account: Option<CreateTokenAccount>,
pub card: Option<CreateTokenCardUnion>,
pub customer: Option<CustomerId>,
pub cvc_update: Option<CreateTokenCvcUpdate>,
pub expand: &'a [&'a str],
pub person: Option<CreateTokenPerson>,
pub pii: Option<CreateTokenPii>,
}
Expand description
The parameters for Token::create
.
Fields§
§account: Option<CreateTokenAccount>
Information for the account this token will represent.
card: Option<CreateTokenCardUnion>
§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<CreateTokenCvcUpdate>
The updated CVC value this token will represent.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
person: Option<CreateTokenPerson>
Information for the person this token will represent.
pii: Option<CreateTokenPii>
The PII this token will represent.
Implementations§
source§impl<'a> CreateToken<'a>
impl<'a> CreateToken<'a>
Trait Implementations§
source§impl<'a> Clone for CreateToken<'a>
impl<'a> Clone for CreateToken<'a>
source§fn clone(&self) -> CreateToken<'a>
fn clone(&self) -> CreateToken<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for CreateToken<'a>
impl<'a> Debug for CreateToken<'a>
source§impl<'a> Default for CreateToken<'a>
impl<'a> Default for CreateToken<'a>
source§fn default() -> CreateToken<'a>
fn default() -> CreateToken<'a>
Returns the “default value” for a type. Read more