pub struct CreditCardSpecs {
pub address_city: Option<String>,
pub address_country: Option<String>,
pub address_line1: Option<String>,
pub address_line2: Option<String>,
pub address_state: Option<String>,
pub address_zip: Option<String>,
pub currency: Option<String>,
pub cvc: Option<String>,
pub exp_month: String,
pub exp_year: String,
pub name: Option<String>,
pub number: String,
}
Fields§
§address_city: Option<String>
City / District / Suburb / Town / Village.
address_country: Option<String>
Billing address country, if provided.
address_line1: Option<String>
Address line 1 (Street address / PO Box / Company name).
address_line2: Option<String>
Address line 2 (Apartment / Suite / Unit / Building).
address_state: Option<String>
State / County / Province / Region.
address_zip: Option<String>
ZIP or postal code.
currency: Option<String>
Required in order to add the card to an account; in all other cases, this parameter is not used.
When added to an account, the card (which must be a debit card) can be used as a transfer destination for funds in this currency.
cvc: Option<String>
Card security code.
Highly recommended to always include this value.
exp_month: String
Two-digit number representing the card’s expiration month.
exp_year: String
Two- or four-digit number representing the card’s expiration year.
name: Option<String>
Cardholder’s full name.
number: String
The card number, as a string without any separators.
Trait Implementations§
source§impl Clone for CreditCardSpecs
impl Clone for CreditCardSpecs
source§fn clone(&self) -> CreditCardSpecs
fn clone(&self) -> CreditCardSpecs
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 CreditCardSpecs
impl Debug for CreditCardSpecs
source§impl Default for CreditCardSpecs
impl Default for CreditCardSpecs
source§fn default() -> CreditCardSpecs
fn default() -> CreditCardSpecs
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreditCardSpecs
impl<'de> Deserialize<'de> for CreditCardSpecs
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 Freeze for CreditCardSpecs
impl RefUnwindSafe for CreditCardSpecs
impl Send for CreditCardSpecs
impl Sync for CreditCardSpecs
impl Unpin for CreditCardSpecs
impl UnwindSafe for CreditCardSpecs
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