#[non_exhaustive]pub enum AccountInvoicesSettingsHostedPaymentMethodSave {
Always,
Never,
Offer,
Unknown(String),
}Expand description
Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Always
Never
Offer
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for AccountInvoicesSettingsHostedPaymentMethodSave
impl Clone for AccountInvoicesSettingsHostedPaymentMethodSave
Source§fn clone(&self) -> AccountInvoicesSettingsHostedPaymentMethodSave
fn clone(&self) -> AccountInvoicesSettingsHostedPaymentMethodSave
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 AccountInvoicesSettingsHostedPaymentMethodSave
impl FromValueOpt for AccountInvoicesSettingsHostedPaymentMethodSave
fn from_value(v: Value) -> Option<Self>
Source§impl PartialEq for AccountInvoicesSettingsHostedPaymentMethodSave
impl PartialEq for AccountInvoicesSettingsHostedPaymentMethodSave
Source§fn eq(&self, other: &AccountInvoicesSettingsHostedPaymentMethodSave) -> bool
fn eq(&self, other: &AccountInvoicesSettingsHostedPaymentMethodSave) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AccountInvoicesSettingsHostedPaymentMethodSave
impl StructuralPartialEq for AccountInvoicesSettingsHostedPaymentMethodSave
Auto Trait Implementations§
impl Freeze for AccountInvoicesSettingsHostedPaymentMethodSave
impl RefUnwindSafe for AccountInvoicesSettingsHostedPaymentMethodSave
impl Send for AccountInvoicesSettingsHostedPaymentMethodSave
impl Sync for AccountInvoicesSettingsHostedPaymentMethodSave
impl Unpin for AccountInvoicesSettingsHostedPaymentMethodSave
impl UnwindSafe for AccountInvoicesSettingsHostedPaymentMethodSave
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