pub struct PaymentInstrumentResponse {
pub token: Option<String>,
pub active: Option<bool>,
pub type: Option<String>,
pub card: Option<PaymentInstrumentResponseCard>,
pub mandate: Option<MandateResponse>,
pub created_at: Option<DateTime>,
}Expand description
Payment Instrument Response
Fields§
§token: Option<String>Unique token identifying the saved payment card for a customer.
Constraints:
- read-only
active: Option<bool>Indicates whether the payment instrument is active and can be used for payments. To deactivate it, send a DELETE request to the resource endpoint.
Constraints:
- read-only
type: Option<String>Type of the payment instrument.
card: Option<PaymentInstrumentResponseCard>Details of the payment card.
mandate: Option<MandateResponse>§created_at: Option<DateTime>Creation date of payment instrument. Response format expressed according to ISO8601 code.
Trait Implementations§
Source§impl Clone for PaymentInstrumentResponse
impl Clone for PaymentInstrumentResponse
Source§fn clone(&self) -> PaymentInstrumentResponse
fn clone(&self) -> PaymentInstrumentResponse
Returns a duplicate 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 PaymentInstrumentResponse
impl Debug for PaymentInstrumentResponse
Source§impl Default for PaymentInstrumentResponse
impl Default for PaymentInstrumentResponse
Source§fn default() -> PaymentInstrumentResponse
fn default() -> PaymentInstrumentResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentInstrumentResponse
impl<'de> Deserialize<'de> for PaymentInstrumentResponse
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 PaymentInstrumentResponse
impl RefUnwindSafe for PaymentInstrumentResponse
impl Send for PaymentInstrumentResponse
impl Sync for PaymentInstrumentResponse
impl Unpin for PaymentInstrumentResponse
impl UnsafeUnpin for PaymentInstrumentResponse
impl UnwindSafe for PaymentInstrumentResponse
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