pub struct PaymentPagesCheckoutSessionDiscount {
pub coupon: Option<Expandable<Coupon>>,
pub promotion_code: Option<Expandable<PromotionCode>>,
}
Fields§
§coupon: Option<Expandable<Coupon>>
Coupon attached to the Checkout Session.
promotion_code: Option<Expandable<PromotionCode>>
Promotion code attached to the Checkout Session.
Trait Implementations§
Source§impl Clone for PaymentPagesCheckoutSessionDiscount
impl Clone for PaymentPagesCheckoutSessionDiscount
Source§fn clone(&self) -> PaymentPagesCheckoutSessionDiscount
fn clone(&self) -> PaymentPagesCheckoutSessionDiscount
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 PaymentPagesCheckoutSessionDiscount
impl FromValueOpt for PaymentPagesCheckoutSessionDiscount
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for PaymentPagesCheckoutSessionDiscount
impl RefUnwindSafe for PaymentPagesCheckoutSessionDiscount
impl Send for PaymentPagesCheckoutSessionDiscount
impl Sync for PaymentPagesCheckoutSessionDiscount
impl Unpin for PaymentPagesCheckoutSessionDiscount
impl UnwindSafe for PaymentPagesCheckoutSessionDiscount
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