pub struct AppliedPromotion {
pub promotion_id: PromotionId,
pub promotion_code: String,
pub promotion_name: String,
pub coupon_code: Option<String>,
pub discount_amount: Decimal,
pub discount_type: PromotionType,
pub target: PromotionTarget,
pub description: String,
}Expand description
A promotion that was successfully applied
Fields§
§promotion_id: PromotionId§promotion_code: String§promotion_name: String§coupon_code: Option<String>§discount_amount: Decimal§discount_type: PromotionType§target: PromotionTarget§description: StringHuman-readable description of discount
Trait Implementations§
Source§impl Clone for AppliedPromotion
impl Clone for AppliedPromotion
Source§fn clone(&self) -> AppliedPromotion
fn clone(&self) -> AppliedPromotion
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 AppliedPromotion
impl Debug for AppliedPromotion
Source§impl<'de> Deserialize<'de> for AppliedPromotion
impl<'de> Deserialize<'de> for AppliedPromotion
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AppliedPromotion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AppliedPromotion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AppliedPromotion
impl Serialize for AppliedPromotion
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for AppliedPromotion
impl RefUnwindSafe for AppliedPromotion
impl Send for AppliedPromotion
impl Sync for AppliedPromotion
impl Unpin for AppliedPromotion
impl UnsafeUnpin for AppliedPromotion
impl UnwindSafe for AppliedPromotion
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