pub struct CreditCardToken {
pub credit_card_id: String,
pub payer_id: Option<String>,
pub last4: Option<String>,
pub _type: Option<String>,
pub expire_month: Option<i32>,
pub expire_year: Option<i32>,
}
Expand description
A credit card in token representation.
Fields§
§credit_card_id: String
The ID of credit card that is stored in the PayPal vault.
payer_id: Option<String>
A unique ID that you can assign and track when you store a credit card in the vault or use a vaulted credit card. This ID can help to avoid unintentional use or misuse of credit cards and can be any value, such as a UUID, user name, or email address. Required when you use a vaulted credit card and if a payer_id was originally provided when you vaulted the credit card.
last4: Option<String>
The last four digits of the stored credit card number.
_type: Option<String>
The credit card type. Value is visa, mastercard, discover, or amex. Do not use these lowercase values for display.
expire_month: Option<i32>
The expiration month with no leading zero. Value is from 1 to 12.
expire_year: Option<i32>
The four-digit expiration year.
Trait Implementations§
Source§impl Debug for CreditCardToken
impl Debug for CreditCardToken
Source§impl<'de> Deserialize<'de> for CreditCardToken
impl<'de> Deserialize<'de> for CreditCardToken
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 CreditCardToken
impl RefUnwindSafe for CreditCardToken
impl Send for CreditCardToken
impl Sync for CreditCardToken
impl Unpin for CreditCardToken
impl UnwindSafe for CreditCardToken
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more