pub struct CreateCheckoutSessionAfterExpirationRecovery {
pub allow_promotion_codes: Option<bool>,
pub enabled: bool,
}
Fields§
§allow_promotion_codes: Option<bool>
Enables user redeemable promotion codes on the recovered Checkout Sessions.
Defaults to false
.
enabled: bool
If true
, a recovery URL will be generated to recover this Checkout Session if it
expires before a successful transaction is completed.
It will be attached to the Checkout Session object upon expiration.
Trait Implementations§
source§impl Clone for CreateCheckoutSessionAfterExpirationRecovery
impl Clone for CreateCheckoutSessionAfterExpirationRecovery
source§fn clone(&self) -> CreateCheckoutSessionAfterExpirationRecovery
fn clone(&self) -> CreateCheckoutSessionAfterExpirationRecovery
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 CreateCheckoutSessionAfterExpirationRecovery
impl Default for CreateCheckoutSessionAfterExpirationRecovery
source§fn default() -> CreateCheckoutSessionAfterExpirationRecovery
fn default() -> CreateCheckoutSessionAfterExpirationRecovery
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateCheckoutSessionAfterExpirationRecovery
impl<'de> Deserialize<'de> for CreateCheckoutSessionAfterExpirationRecovery
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 CreateCheckoutSessionAfterExpirationRecovery
impl Send for CreateCheckoutSessionAfterExpirationRecovery
impl Sync for CreateCheckoutSessionAfterExpirationRecovery
impl Unpin for CreateCheckoutSessionAfterExpirationRecovery
impl UnwindSafe for CreateCheckoutSessionAfterExpirationRecovery
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