#[non_exhaustive]pub enum CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove {
Disabled,
Enabled,
Unknown(String),
}Expand description
Controls whether the customer sheet displays the option to remove a saved payment method.“
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 (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.
Disabled
Enabled
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
impl Clone for CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
Source§fn clone(
&self,
) -> CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
fn clone( &self, ) -> CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
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 CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
impl PartialEq for CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
Source§fn eq(
&self,
other: &CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove,
) -> bool
fn eq( &self, other: &CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove, ) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
impl StructuralPartialEq for CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
Auto Trait Implementations§
impl Freeze for CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
impl RefUnwindSafe for CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
impl Send for CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
impl Sync for CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
impl Unpin for CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
impl UnwindSafe for CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove
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