pub enum CreateTokenCard {
CreditCardSpecs(CreateTokenCreditCardSpecs),
String(String),
}
Expand description
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.
Variants§
CreditCardSpecs(CreateTokenCreditCardSpecs)
String(String)
Trait Implementations§
Source§impl Clone for CreateTokenCard
impl Clone for CreateTokenCard
Source§fn clone(&self) -> CreateTokenCard
fn clone(&self) -> CreateTokenCard
Returns a duplicate 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 Debug for CreateTokenCard
impl Debug for CreateTokenCard
Auto Trait Implementations§
impl Freeze for CreateTokenCard
impl RefUnwindSafe for CreateTokenCard
impl Send for CreateTokenCard
impl Sync for CreateTokenCard
impl Unpin for CreateTokenCard
impl UnwindSafe for CreateTokenCard
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