pub struct Card {Show 17 fields
pub id: Option<String>,
pub billing_address: Option<Address>,
pub bin: Option<String>,
pub card_brand: Option<String>,
pub card_co_brand: Option<String>,
pub card_type: Option<String>,
pub cardholder_name: Option<String>,
pub customer_id: Option<String>,
pub enabled: Option<bool>,
pub exp_month: Option<i64>,
pub exp_year: Option<i64>,
pub fingerprint: Option<String>,
pub last_4: Option<String>,
pub merchant_id: Option<String>,
pub prepaid_type: Option<String>,
pub reference_id: Option<String>,
pub version: Option<i64>,
}Expand description
Representation of a Credit/Debit Card for the crate and the Square API.
Fields§
§id: Option<String>§billing_address: Option<Address>§bin: Option<String>§card_brand: Option<String>§card_co_brand: Option<String>§card_type: Option<String>§cardholder_name: Option<String>§customer_id: Option<String>§enabled: Option<bool>§exp_month: Option<i64>§exp_year: Option<i64>§fingerprint: Option<String>§last_4: Option<String>§merchant_id: Option<String>§prepaid_type: Option<String>§reference_id: Option<String>§version: Option<i64>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