pub struct PaymentPagesCheckoutSessionConsentCollection {
pub payment_method_reuse_agreement: Option<PaymentPagesCheckoutSessionPaymentMethodReuseAgreement>,
pub promotions: Option<PaymentPagesCheckoutSessionConsentCollectionPromotions>,
pub terms_of_service: Option<PaymentPagesCheckoutSessionConsentCollectionTermsOfService>,
}
Fields§
§payment_method_reuse_agreement: Option<PaymentPagesCheckoutSessionPaymentMethodReuseAgreement>
If set to hidden
, it will hide legal text related to the reuse of a payment method.
promotions: Option<PaymentPagesCheckoutSessionConsentCollectionPromotions>
If set to auto
, enables the collection of customer consent for promotional communications.
The Checkout.
Session will determine whether to display an option to opt into promotional communication
from the merchant depending on the customer’s locale. Only available to US merchants.
terms_of_service: Option<PaymentPagesCheckoutSessionConsentCollectionTermsOfService>
If set to required
, it requires customers to accept the terms of service before being able to pay.
Trait Implementations§
Source§impl Clone for PaymentPagesCheckoutSessionConsentCollection
impl Clone for PaymentPagesCheckoutSessionConsentCollection
Source§fn clone(&self) -> PaymentPagesCheckoutSessionConsentCollection
fn clone(&self) -> PaymentPagesCheckoutSessionConsentCollection
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 PaymentPagesCheckoutSessionConsentCollection
impl FromValueOpt for PaymentPagesCheckoutSessionConsentCollection
fn from_value(v: Value) -> Option<Self>
impl Copy for PaymentPagesCheckoutSessionConsentCollection
Auto Trait Implementations§
impl Freeze for PaymentPagesCheckoutSessionConsentCollection
impl RefUnwindSafe for PaymentPagesCheckoutSessionConsentCollection
impl Send for PaymentPagesCheckoutSessionConsentCollection
impl Sync for PaymentPagesCheckoutSessionConsentCollection
impl Unpin for PaymentPagesCheckoutSessionConsentCollection
impl UnwindSafe for PaymentPagesCheckoutSessionConsentCollection
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