pub struct Card {Show 13 fields
pub id: Option<String>,
pub entity: String,
pub name: Option<String>,
pub last4: Option<String>,
pub network: Option<String>,
pub card_type: Option<String>,
pub issuer: Option<String>,
pub international: bool,
pub emi: bool,
pub sub_type: Option<String>,
pub iin: Option<String>,
pub expiry_month: Option<u32>,
pub expiry_year: Option<u32>,
}Expand description
Card details.
Only the last four digits and network metadata are ever exposed — Razorpay never returns a full card number.
Fields§
§id: Option<String>Unique identifier, e.g. card_JXPULjlR3DjqLp.
entity: StringAlways "card".
name: Option<String>Name printed on the card.
last4: Option<String>Last four digits.
network: Option<String>Card network, e.g. Visa, MasterCard, RuPay.
card_type: Option<String>credit, debit, or prepaid.
issuer: Option<String>Issuing bank code.
international: boolWhether the card is enrolled for international payments.
emi: boolWhether the card supports EMI.
sub_type: Option<String>Whether the card can be used for subscriptions.
iin: Option<String>First six digits, when Razorpay exposes them.
expiry_month: Option<u32>Expiry month, 1–12.
expiry_year: Option<u32>Expiry year, four digits.
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
impl StructuralPartialEq for Card
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnsafeUnpin 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