pub struct PaymentMethod {
pub brand: Option<String>,
pub expires_month: Option<i64>,
pub expires_year: Option<i64>,
pub last4: Option<String>,
}Fields§
§brand: Option<String>Card network brand, e.g. visa.
expires_month: Option<i64>Card expiration month.
expires_year: Option<i64>Four-digit card expiration year.
last4: Option<String>Last four card digits.
Implementations§
Source§impl PaymentMethod
impl PaymentMethod
pub fn serialize<__S>(
__self: &PaymentMethod,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> PaymentMethod
impl<'de> PaymentMethod
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<PaymentMethod, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for PaymentMethod
impl Clone for PaymentMethod
Source§impl Debug for PaymentMethod
impl Debug for PaymentMethod
Source§impl<'de> Deserialize<'de> for PaymentMethod
impl<'de> Deserialize<'de> for PaymentMethod
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 PaymentMethod
impl RefUnwindSafe for PaymentMethod
impl Send for PaymentMethod
impl Sync for PaymentMethod
impl Unpin for PaymentMethod
impl UnsafeUnpin for PaymentMethod
impl UnwindSafe for PaymentMethod
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