#[non_exhaustive]pub enum PaymentLinkPaymentMethodCollection {
Always,
IfRequired,
Unknown(String),
}Expand description
Configuration for collecting a payment method during checkout. Defaults to always.
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
IfRequired
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for PaymentLinkPaymentMethodCollection
impl Clone for PaymentLinkPaymentMethodCollection
Source§fn clone(&self) -> PaymentLinkPaymentMethodCollection
fn clone(&self) -> PaymentLinkPaymentMethodCollection
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 PaymentLinkPaymentMethodCollection
impl FromValueOpt for PaymentLinkPaymentMethodCollection
fn from_value(v: Value) -> Option<Self>
Source§impl PartialEq for PaymentLinkPaymentMethodCollection
impl PartialEq for PaymentLinkPaymentMethodCollection
Source§fn eq(&self, other: &PaymentLinkPaymentMethodCollection) -> bool
fn eq(&self, other: &PaymentLinkPaymentMethodCollection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PaymentLinkPaymentMethodCollection
impl StructuralPartialEq for PaymentLinkPaymentMethodCollection
Auto Trait Implementations§
impl Freeze for PaymentLinkPaymentMethodCollection
impl RefUnwindSafe for PaymentLinkPaymentMethodCollection
impl Send for PaymentLinkPaymentMethodCollection
impl Sync for PaymentLinkPaymentMethodCollection
impl Unpin for PaymentLinkPaymentMethodCollection
impl UnwindSafe for PaymentLinkPaymentMethodCollection
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