#[non_exhaustive]pub enum UpdatePaymentLinkPaymentMethodCollection {
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 UpdatePaymentLinkPaymentMethodCollection
impl Clone for UpdatePaymentLinkPaymentMethodCollection
Source§fn clone(&self) -> UpdatePaymentLinkPaymentMethodCollection
fn clone(&self) -> UpdatePaymentLinkPaymentMethodCollection
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 UpdatePaymentLinkPaymentMethodCollection
Available on non-crate feature redact-generated-debug only.
impl Debug for UpdatePaymentLinkPaymentMethodCollection
Available on non-crate feature
redact-generated-debug only.Source§impl PartialEq for UpdatePaymentLinkPaymentMethodCollection
impl PartialEq for UpdatePaymentLinkPaymentMethodCollection
Source§fn eq(&self, other: &UpdatePaymentLinkPaymentMethodCollection) -> bool
fn eq(&self, other: &UpdatePaymentLinkPaymentMethodCollection) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for UpdatePaymentLinkPaymentMethodCollection
impl StructuralPartialEq for UpdatePaymentLinkPaymentMethodCollection
Auto Trait Implementations§
impl Freeze for UpdatePaymentLinkPaymentMethodCollection
impl RefUnwindSafe for UpdatePaymentLinkPaymentMethodCollection
impl Send for UpdatePaymentLinkPaymentMethodCollection
impl Sync for UpdatePaymentLinkPaymentMethodCollection
impl Unpin for UpdatePaymentLinkPaymentMethodCollection
impl UnsafeUnpin for UpdatePaymentLinkPaymentMethodCollection
impl UnwindSafe for UpdatePaymentLinkPaymentMethodCollection
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