pub struct DiscountsResourceStackableDiscount {
pub coupon: Option<Expandable<Coupon>>,
pub discount: Option<Expandable<Discount>>,
pub promotion_code: Option<Expandable<PromotionCode>>,
}
Fields§
§coupon: Option<Expandable<Coupon>>
ID of the coupon to create a new discount for.
discount: Option<Expandable<Discount>>
ID of an existing discount on the object (or one of its ancestors) to reuse.
promotion_code: Option<Expandable<PromotionCode>>
ID of the promotion code to create a new discount for.
Trait Implementations§
Source§impl Clone for DiscountsResourceStackableDiscount
impl Clone for DiscountsResourceStackableDiscount
Source§fn clone(&self) -> DiscountsResourceStackableDiscount
fn clone(&self) -> DiscountsResourceStackableDiscount
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 moreAuto Trait Implementations§
impl Freeze for DiscountsResourceStackableDiscount
impl RefUnwindSafe for DiscountsResourceStackableDiscount
impl Send for DiscountsResourceStackableDiscount
impl Sync for DiscountsResourceStackableDiscount
impl Unpin for DiscountsResourceStackableDiscount
impl UnwindSafe for DiscountsResourceStackableDiscount
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