#[non_exhaustive]pub enum CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage {
OffSession,
OnSession,
Unknown(String),
}Expand description
When using PaymentIntents and the customer checks the save checkbox, this field determines the setup_future_usage value used to confirm the PaymentIntent.
When using SetupIntents, directly configure the usage value on SetupIntent creation.
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.
OffSession
OnSession
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
impl Clone for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
Source§fn clone(
&self,
) -> CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
fn clone( &self, ) -> CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
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 PartialEq for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
impl PartialEq for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
Source§fn eq(
&self,
other: &CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage,
) -> bool
fn eq( &self, other: &CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage, ) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
impl Serialize for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
impl Eq for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
impl StructuralPartialEq for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
Auto Trait Implementations§
impl Freeze for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
impl RefUnwindSafe for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
impl Send for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
impl Sync for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
impl Unpin for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
impl UnwindSafe for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage
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