Enum stripe::PaymentSource
source · pub enum PaymentSource {
Card(Card),
Source(Source),
Account(Account),
BankAccount(BankAccount),
}
Expand description
A PaymentSource represents a payment method associated with a customer or charge. This value is usually returned as a subresource on another request.
Not to be confused with Source
which represents a “generic” payment method
returned by the Source::get
(which could still be a credit card, etc)
but is not necessarily attached to either a customer or charge.
Variants§
Trait Implementations§
source§impl Clone for PaymentSource
impl Clone for PaymentSource
source§fn clone(&self) -> PaymentSource
fn clone(&self) -> PaymentSource
Returns a copy of the value. Read more
1.0.0 · 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 PaymentSource
impl Debug for PaymentSource
source§impl<'de> Deserialize<'de> for PaymentSource
impl<'de> Deserialize<'de> for PaymentSource
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
source§impl Object for PaymentSource
impl Object for PaymentSource
Auto Trait Implementations§
impl Freeze for PaymentSource
impl RefUnwindSafe for PaymentSource
impl Send for PaymentSource
impl Sync for PaymentSource
impl Unpin for PaymentSource
impl UnwindSafe for PaymentSource
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