pub struct DiscountsResourceStackableDiscountWithDiscountEnd {
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 DiscountsResourceStackableDiscountWithDiscountEnd
impl Clone for DiscountsResourceStackableDiscountWithDiscountEnd
Source§fn clone(&self) -> DiscountsResourceStackableDiscountWithDiscountEnd
fn clone(&self) -> DiscountsResourceStackableDiscountWithDiscountEnd
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiscountsResourceStackableDiscountWithDiscountEnd
impl FromValueOpt for DiscountsResourceStackableDiscountWithDiscountEnd
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for DiscountsResourceStackableDiscountWithDiscountEnd
impl RefUnwindSafe for DiscountsResourceStackableDiscountWithDiscountEnd
impl Send for DiscountsResourceStackableDiscountWithDiscountEnd
impl Sync for DiscountsResourceStackableDiscountWithDiscountEnd
impl Unpin for DiscountsResourceStackableDiscountWithDiscountEnd
impl UnsafeUnpin for DiscountsResourceStackableDiscountWithDiscountEnd
impl UnwindSafe for DiscountsResourceStackableDiscountWithDiscountEnd
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