#[non_exhaustive]pub enum CreatePaymentLinkPaymentMethodCollection {
Always,
IfRequired,
Unknown(String),
}Expand description
Specify whether Checkout should collect a payment method.
When set to if_required, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount.
Can only be set in subscription mode. Defaults to always.
If you’d like information on how to collect a payment method outside of Checkout, read the guide on configuring subscriptions with a free trial.
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 CreatePaymentLinkPaymentMethodCollection
impl Clone for CreatePaymentLinkPaymentMethodCollection
Source§fn clone(&self) -> CreatePaymentLinkPaymentMethodCollection
fn clone(&self) -> CreatePaymentLinkPaymentMethodCollection
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 Debug for CreatePaymentLinkPaymentMethodCollection
Available on non-crate feature redact-generated-debug only.
impl Debug for CreatePaymentLinkPaymentMethodCollection
Available on non-crate feature
redact-generated-debug only.Source§impl PartialEq for CreatePaymentLinkPaymentMethodCollection
impl PartialEq for CreatePaymentLinkPaymentMethodCollection
Source§fn eq(&self, other: &CreatePaymentLinkPaymentMethodCollection) -> bool
fn eq(&self, other: &CreatePaymentLinkPaymentMethodCollection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CreatePaymentLinkPaymentMethodCollection
impl StructuralPartialEq for CreatePaymentLinkPaymentMethodCollection
Auto Trait Implementations§
impl Freeze for CreatePaymentLinkPaymentMethodCollection
impl RefUnwindSafe for CreatePaymentLinkPaymentMethodCollection
impl Send for CreatePaymentLinkPaymentMethodCollection
impl Sync for CreatePaymentLinkPaymentMethodCollection
impl Unpin for CreatePaymentLinkPaymentMethodCollection
impl UnsafeUnpin for CreatePaymentLinkPaymentMethodCollection
impl UnwindSafe for CreatePaymentLinkPaymentMethodCollection
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