pub struct StackableDiscountWithDiscountSettings {
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 StackableDiscountWithDiscountSettings
impl Clone for StackableDiscountWithDiscountSettings
Source§fn clone(&self) -> StackableDiscountWithDiscountSettings
fn clone(&self) -> StackableDiscountWithDiscountSettings
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 StackableDiscountWithDiscountSettings
impl FromValueOpt for StackableDiscountWithDiscountSettings
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for StackableDiscountWithDiscountSettings
impl RefUnwindSafe for StackableDiscountWithDiscountSettings
impl Send for StackableDiscountWithDiscountSettings
impl Sync for StackableDiscountWithDiscountSettings
impl Unpin for StackableDiscountWithDiscountSettings
impl UnsafeUnpin for StackableDiscountWithDiscountSettings
impl UnwindSafe for StackableDiscountWithDiscountSettings
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