pub struct PromotionCodesResourcePromotion {
pub coupon: Option<Expandable<Coupon>>,
pub type_: PromotionCodesResourcePromotionType,
}
Fields§
§coupon: Option<Expandable<Coupon>>
If promotion type
is coupon
, the coupon for this promotion.
type_: PromotionCodesResourcePromotionType
The type of promotion.
Trait Implementations§
Source§impl Clone for PromotionCodesResourcePromotion
impl Clone for PromotionCodesResourcePromotion
Source§fn clone(&self) -> PromotionCodesResourcePromotion
fn clone(&self) -> PromotionCodesResourcePromotion
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 PromotionCodesResourcePromotion
impl FromValueOpt for PromotionCodesResourcePromotion
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for PromotionCodesResourcePromotion
impl RefUnwindSafe for PromotionCodesResourcePromotion
impl Send for PromotionCodesResourcePromotion
impl Sync for PromotionCodesResourcePromotion
impl Unpin for PromotionCodesResourcePromotion
impl UnwindSafe for PromotionCodesResourcePromotion
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