pub struct PaymentMethod {
pub id: Option<String>,
pub method_type: Option<String>,
pub created: Option<String>,
pub customer: Option<String>,
pub livemode: Option<bool>,
pub name: Option<String>,
pub phone: Option<String>,
pub billing_details: Option<BillingDetails>,
pub card: Option<Card>,
pub type_field: Option<String>,
}Expand description
PaymentMethod objects represent your customer’s payment instruments.
Fields§
§id: Option<String>§method_type: Option<String>§created: Option<String>§customer: Option<String>§livemode: Option<bool>§name: Option<String>§phone: Option<String>§billing_details: Option<BillingDetails>§card: Option<Card>§type_field: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for PaymentMethod
impl Clone for PaymentMethod
Source§fn clone(&self) -> PaymentMethod
fn clone(&self) -> PaymentMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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