pub struct PaymentLinksResourceConsentCollection {
pub payment_method_reuse_agreement: Option<PaymentLinksResourcePaymentMethodReuseAgreement>,
pub promotions: Option<PaymentLinksResourceConsentCollectionPromotions>,
pub terms_of_service: Option<PaymentLinksResourceConsentCollectionTermsOfService>,
}
Fields§
§payment_method_reuse_agreement: Option<PaymentLinksResourcePaymentMethodReuseAgreement>
Settings related to the payment method reuse text shown in the Checkout UI.
promotions: Option<PaymentLinksResourceConsentCollectionPromotions>
If set to auto
, enables the collection of customer consent for promotional communications.
terms_of_service: Option<PaymentLinksResourceConsentCollectionTermsOfService>
If set to required
, it requires cutomers to accept the terms of service before being able to pay.
If set to none
, customers won’t be shown a checkbox to accept the terms of service.
Trait Implementations§
source§impl Clone for PaymentLinksResourceConsentCollection
impl Clone for PaymentLinksResourceConsentCollection
source§fn clone(&self) -> PaymentLinksResourceConsentCollection
fn clone(&self) -> PaymentLinksResourceConsentCollection
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 PaymentLinksResourceConsentCollection
impl Default for PaymentLinksResourceConsentCollection
source§fn default() -> PaymentLinksResourceConsentCollection
fn default() -> PaymentLinksResourceConsentCollection
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PaymentLinksResourceConsentCollection
impl<'de> Deserialize<'de> for PaymentLinksResourceConsentCollection
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 RefUnwindSafe for PaymentLinksResourceConsentCollection
impl Send for PaymentLinksResourceConsentCollection
impl Sync for PaymentLinksResourceConsentCollection
impl Unpin for PaymentLinksResourceConsentCollection
impl UnwindSafe for PaymentLinksResourceConsentCollection
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