[][src]Struct stripe::PaymentMethodCard

pub struct PaymentMethodCard {
    pub brand: Option<CardBrand>,
    pub country: String,
    pub exp_month: i64,
    pub exp_year: i64,
    pub fingerprint: String,
    pub funding: Option<CardType>,
    pub last4: String,
}

Fields

brand: Option<CardBrand>

Can be American Express, Diners Club, Discover, JCB, MasterCard, UnionPay, Visa, or Unknown.

country: String

Two-letter ISO code representing the country of the card.

You could use this attribute to get a sense of the international breakdown of cards you've collected.

exp_month: i64

Two-digit number representing the card's expiration month.

exp_year: i64

Four-digit number representing the card's expiration year.

fingerprint: String

Uniquely identifies this particular card number.

You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example.

funding: Option<CardType>

Card funding type.

Can be credit, debit, prepaid, or unknown.

last4: String

The last four digits of the card.

Trait Implementations

impl Clone for PaymentMethodCard[src]

impl Default for PaymentMethodCard[src]

impl Debug for PaymentMethodCard[src]

impl Serialize for PaymentMethodCard[src]

impl<'de> Deserialize<'de> for PaymentMethodCard[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self