pub struct CreatePromotionCodePromotion {
pub coupon: Option<String>,
pub type_: CreatePromotionCodePromotionType,
}Expand description
The promotion referenced by this promotion code.
Fields§
§coupon: Option<String>If promotion type is coupon, the coupon for this promotion code.
type_: CreatePromotionCodePromotionTypeSpecifies the type of promotion.
Implementations§
Source§impl CreatePromotionCodePromotion
impl CreatePromotionCodePromotion
pub fn new(type_: impl Into<CreatePromotionCodePromotionType>) -> Self
Trait Implementations§
Source§impl Clone for CreatePromotionCodePromotion
impl Clone for CreatePromotionCodePromotion
Source§fn clone(&self) -> CreatePromotionCodePromotion
fn clone(&self) -> CreatePromotionCodePromotion
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 Debug for CreatePromotionCodePromotion
impl Debug for CreatePromotionCodePromotion
Source§impl PartialEq for CreatePromotionCodePromotion
impl PartialEq for CreatePromotionCodePromotion
Source§fn eq(&self, other: &CreatePromotionCodePromotion) -> bool
fn eq(&self, other: &CreatePromotionCodePromotion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CreatePromotionCodePromotion
impl StructuralPartialEq for CreatePromotionCodePromotion
Auto Trait Implementations§
impl Freeze for CreatePromotionCodePromotion
impl RefUnwindSafe for CreatePromotionCodePromotion
impl Send for CreatePromotionCodePromotion
impl Sync for CreatePromotionCodePromotion
impl Unpin for CreatePromotionCodePromotion
impl UnsafeUnpin for CreatePromotionCodePromotion
impl UnwindSafe for CreatePromotionCodePromotion
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