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 represents.
card: Option<CreateTokenCardUnion>
The card this token will represent.
If you also pass in a customer, the card must be the ID of a card belonging to the customer. Otherwise, if you do not pass in a customer, this is a dictionary containing a user’s credit card details, with the options described below.
customer: Option<CustomerId>
Create a token for the customer, which is owned by the application’s account.
You can only use this with an OAuth access token or Stripe-Account header. Learn more about cloning saved payment methods.
cvc_update: Option<CreateTokenCvcUpdate>
The updated CVC value this token represents.
expand: &'a [&'a str]
Specifies which fields in the response should be expanded.
person: Option<CreateTokenPerson>
Information for the person this token represents.
pii: Option<CreateTokenPii>
The PII this token represents.
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
Auto Trait Implementations§
impl<'a> Freeze for CreateToken<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more