pub struct Card {
pub type: CardType,
pub last4: String,
pub expiry_month: i64,
pub expiry_year: i64,
pub cardholder_name: String,
}Expand description
Card metadata
Fields§
§type: CardTypeType of credit or debit card used to pay.
last4: StringLast four digits of the card used to pay.
expiry_month: i64Month of the expiry date of the card used to pay.
expiry_year: i64Year of the expiry date of the card used to pay.
cardholder_name: StringThe name on the card used to pay.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Card
impl<'de> Deserialize<'de> for Card
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 Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnwindSafe for Card
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