Enum stripe::CreateTokenCardUnion
source · pub enum CreateTokenCardUnion {
CreditCardSpecs(CreditCardSpecs),
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(CreditCardSpecs)
String(String)
Trait Implementations§
source§impl Clone for CreateTokenCardUnion
impl Clone for CreateTokenCardUnion
source§fn clone(&self) -> CreateTokenCardUnion
fn clone(&self) -> CreateTokenCardUnion
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 Debug for CreateTokenCardUnion
impl Debug for CreateTokenCardUnion
source§impl<'de> Deserialize<'de> for CreateTokenCardUnion
impl<'de> Deserialize<'de> for CreateTokenCardUnion
source§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 CreateTokenCardUnion
impl Send for CreateTokenCardUnion
impl Sync for CreateTokenCardUnion
impl Unpin for CreateTokenCardUnion
impl UnwindSafe for CreateTokenCardUnion
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