pub enum CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove {
Disabled,
Enabled,
}
Expand description
Controls whether the Payment Element displays the option to remove a saved payment method.
This parameter defaults to disabled
.
Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method.
Removing the payment method detaches the customer
object from that PaymentMethod.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
impl Clone for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
Source§fn clone(
&self,
) -> CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
fn clone( &self, ) -> CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
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 CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
impl PartialEq for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
Source§fn eq(
&self,
other: &CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove,
) -> bool
fn eq( &self, other: &CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove, ) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Copy for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
impl Eq for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
impl StructuralPartialEq for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
Auto Trait Implementations§
impl Freeze for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
impl RefUnwindSafe for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
impl Send for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
impl Sync for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
impl Unpin for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
impl UnwindSafe for CreateCustomerSessionComponentsPaymentElementFeaturesPaymentMethodRemove
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