pub struct RejectedPromotion {
pub promotion_id: Option<PromotionId>,
pub coupon_code: Option<String>,
pub reason: String,
pub reason_code: RejectionReason,
}Expand description
A promotion that could not be applied
Fields§
§promotion_id: Option<PromotionId>§coupon_code: Option<String>§reason: String§reason_code: RejectionReasonTrait Implementations§
Source§impl Clone for RejectedPromotion
impl Clone for RejectedPromotion
Source§fn clone(&self) -> RejectedPromotion
fn clone(&self) -> RejectedPromotion
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 RejectedPromotion
impl Debug for RejectedPromotion
Source§impl<'de> Deserialize<'de> for RejectedPromotion
impl<'de> Deserialize<'de> for RejectedPromotion
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RejectedPromotion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RejectedPromotion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for RejectedPromotion
impl Serialize for RejectedPromotion
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 RejectedPromotion
impl RefUnwindSafe for RejectedPromotion
impl Send for RejectedPromotion
impl Sync for RejectedPromotion
impl Unpin for RejectedPromotion
impl UnsafeUnpin for RejectedPromotion
impl UnwindSafe for RejectedPromotion
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