pub enum CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodSaveUsage {
OffSession,
OnSession,
}
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§
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 Copy 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