pub struct CreateSetupIntentPaymentMethodOptions {
pub acss_debit: Option<CreateSetupIntentPaymentMethodOptionsAcssDebit>,
pub card: Option<CreateSetupIntentPaymentMethodOptionsCard>,
pub link: Option<CreateSetupIntentPaymentMethodOptionsLink>,
pub paypal: Option<CreateSetupIntentPaymentMethodOptionsPaypal>,
pub sepa_debit: Option<CreateSetupIntentPaymentMethodOptionsSepaDebit>,
pub us_bank_account: Option<CreateSetupIntentPaymentMethodOptionsUsBankAccount>,
}
Fields§
§acss_debit: Option<CreateSetupIntentPaymentMethodOptionsAcssDebit>
If this is a acss_debit
SetupIntent, this sub-hash contains details about the ACSS Debit payment method options.
card: Option<CreateSetupIntentPaymentMethodOptionsCard>
Configuration for any card setup attempted on this SetupIntent.
link: Option<CreateSetupIntentPaymentMethodOptionsLink>
If this is a link
PaymentMethod, this sub-hash contains details about the Link payment method options.
paypal: Option<CreateSetupIntentPaymentMethodOptionsPaypal>
If this is a paypal
PaymentMethod, this sub-hash contains details about the PayPal payment method options.
sepa_debit: Option<CreateSetupIntentPaymentMethodOptionsSepaDebit>
If this is a sepa_debit
SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
us_bank_account: Option<CreateSetupIntentPaymentMethodOptionsUsBankAccount>
If this is a us_bank_account
SetupIntent, this sub-hash contains details about the US bank account payment method options.
Trait Implementations§
source§impl Clone for CreateSetupIntentPaymentMethodOptions
impl Clone for CreateSetupIntentPaymentMethodOptions
source§fn clone(&self) -> CreateSetupIntentPaymentMethodOptions
fn clone(&self) -> CreateSetupIntentPaymentMethodOptions
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 Default for CreateSetupIntentPaymentMethodOptions
impl Default for CreateSetupIntentPaymentMethodOptions
source§fn default() -> CreateSetupIntentPaymentMethodOptions
fn default() -> CreateSetupIntentPaymentMethodOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateSetupIntentPaymentMethodOptions
impl<'de> Deserialize<'de> for CreateSetupIntentPaymentMethodOptions
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 RefUnwindSafe for CreateSetupIntentPaymentMethodOptions
impl Send for CreateSetupIntentPaymentMethodOptions
impl Sync for CreateSetupIntentPaymentMethodOptions
impl Unpin for CreateSetupIntentPaymentMethodOptions
impl UnwindSafe for CreateSetupIntentPaymentMethodOptions
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