pub struct PaymentPagesCheckoutSessionConsent {
pub promotions: Option<PaymentPagesCheckoutSessionConsentPromotions>,
pub terms_of_service: Option<PaymentPagesCheckoutSessionConsentTermsOfService>,
}
Fields§
§promotions: Option<PaymentPagesCheckoutSessionConsentPromotions>
If opt_in
, the customer consents to receiving promotional communications
from the merchant about this Checkout Session.
terms_of_service: Option<PaymentPagesCheckoutSessionConsentTermsOfService>
If accepted
, the customer in this Checkout Session has agreed to the merchant’s terms of service.
Trait Implementations§
source§impl Clone for PaymentPagesCheckoutSessionConsent
impl Clone for PaymentPagesCheckoutSessionConsent
source§fn clone(&self) -> PaymentPagesCheckoutSessionConsent
fn clone(&self) -> PaymentPagesCheckoutSessionConsent
Returns a copy 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 Default for PaymentPagesCheckoutSessionConsent
impl Default for PaymentPagesCheckoutSessionConsent
source§fn default() -> PaymentPagesCheckoutSessionConsent
fn default() -> PaymentPagesCheckoutSessionConsent
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PaymentPagesCheckoutSessionConsent
impl<'de> Deserialize<'de> for PaymentPagesCheckoutSessionConsent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PaymentPagesCheckoutSessionConsent
impl RefUnwindSafe for PaymentPagesCheckoutSessionConsent
impl Send for PaymentPagesCheckoutSessionConsent
impl Sync for PaymentPagesCheckoutSessionConsent
impl Unpin for PaymentPagesCheckoutSessionConsent
impl UnwindSafe for PaymentPagesCheckoutSessionConsent
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