pub struct SubscriptionsResourcePaymentSettings {
pub payment_method_options: Option<SubscriptionsResourcePaymentMethodOptions>,
pub payment_method_types: Option<Vec<SubscriptionsResourcePaymentSettingsPaymentMethodTypes>>,
pub save_default_payment_method: Option<SubscriptionsResourcePaymentSettingsSaveDefaultPaymentMethod>,
}
Fields§
§payment_method_options: Option<SubscriptionsResourcePaymentMethodOptions>
Payment-method-specific configuration to provide to invoices created by the subscription.
payment_method_types: Option<Vec<SubscriptionsResourcePaymentSettingsPaymentMethodTypes>>
The list of payment method types to provide to every invoice created by the subscription. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your invoice template settings.
save_default_payment_method: Option<SubscriptionsResourcePaymentSettingsSaveDefaultPaymentMethod>
Configure whether Stripe updates subscription.default_payment_method
when payment succeeds.
Defaults to off
.
Trait Implementations§
Source§impl Clone for SubscriptionsResourcePaymentSettings
impl Clone for SubscriptionsResourcePaymentSettings
Source§fn clone(&self) -> SubscriptionsResourcePaymentSettings
fn clone(&self) -> SubscriptionsResourcePaymentSettings
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 FromValueOpt for SubscriptionsResourcePaymentSettings
impl FromValueOpt for SubscriptionsResourcePaymentSettings
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for SubscriptionsResourcePaymentSettings
impl RefUnwindSafe for SubscriptionsResourcePaymentSettings
impl Send for SubscriptionsResourcePaymentSettings
impl Sync for SubscriptionsResourcePaymentSettings
impl Unpin for SubscriptionsResourcePaymentSettings
impl UnwindSafe for SubscriptionsResourcePaymentSettings
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