#[non_exhaustive]pub enum CreateCheckoutSessionConsentCollectionTermsOfService {
None,
Required,
Unknown(String),
}Expand description
If set to required, it requires customers to check a terms of service checkbox before being able to pay.
There must be a valid terms of service URL set in your Dashboard settings.
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.
None
Required
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCheckoutSessionConsentCollectionTermsOfService
impl Clone for CreateCheckoutSessionConsentCollectionTermsOfService
Source§fn clone(&self) -> CreateCheckoutSessionConsentCollectionTermsOfService
fn clone(&self) -> CreateCheckoutSessionConsentCollectionTermsOfService
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateCheckoutSessionConsentCollectionTermsOfService
Available on non-crate feature redact-generated-debug only.
impl Debug for CreateCheckoutSessionConsentCollectionTermsOfService
Available on non-crate feature
redact-generated-debug only.impl Eq for CreateCheckoutSessionConsentCollectionTermsOfService
impl StructuralPartialEq for CreateCheckoutSessionConsentCollectionTermsOfService
Auto Trait Implementations§
impl Freeze for CreateCheckoutSessionConsentCollectionTermsOfService
impl RefUnwindSafe for CreateCheckoutSessionConsentCollectionTermsOfService
impl Send for CreateCheckoutSessionConsentCollectionTermsOfService
impl Sync for CreateCheckoutSessionConsentCollectionTermsOfService
impl Unpin for CreateCheckoutSessionConsentCollectionTermsOfService
impl UnsafeUnpin for CreateCheckoutSessionConsentCollectionTermsOfService
impl UnwindSafe for CreateCheckoutSessionConsentCollectionTermsOfService
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