pub struct OrderLegacyPromotion {
pub benefits: Option<Vec<OrderLegacyPromotionBenefit>>,
pub effective_dates: Option<String>,
pub generic_redemption_code: Option<String>,
pub id: Option<String>,
pub long_title: Option<String>,
pub product_applicability: Option<String>,
pub redemption_channel: Option<String>,
}
Expand description
There is no detailed description.
This type is not used in any activity, and only used as part of another schema.
Fields§
§benefits: Option<Vec<OrderLegacyPromotionBenefit>>
no description provided
effective_dates: Option<String>
The date and time frame when the promotion is active and ready for validation review. Note that the promotion live time may be delayed for a few hours due to the validation review. Start date and end date are separated by a forward slash (/). The start date is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an expression of the time zone for the sale. The end date is in the same format.
generic_redemption_code: Option<String>
Optional. The text code that corresponds to the promotion when applied on the retailer?s website.
id: Option<String>
The unique ID of the promotion.
long_title: Option<String>
The full title of the promotion.
product_applicability: Option<String>
Whether the promotion is applicable to all products or only specific products. Acceptable values are: - “allProducts
” - “specificProducts
”
redemption_channel: Option<String>
Indicates that the promotion is valid online. Acceptable values are: - “online
”
Trait Implementations§
Source§impl Clone for OrderLegacyPromotion
impl Clone for OrderLegacyPromotion
Source§fn clone(&self) -> OrderLegacyPromotion
fn clone(&self) -> OrderLegacyPromotion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OrderLegacyPromotion
impl Debug for OrderLegacyPromotion
Source§impl Default for OrderLegacyPromotion
impl Default for OrderLegacyPromotion
Source§fn default() -> OrderLegacyPromotion
fn default() -> OrderLegacyPromotion
Source§impl<'de> Deserialize<'de> for OrderLegacyPromotion
impl<'de> Deserialize<'de> for OrderLegacyPromotion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for OrderLegacyPromotion
impl Serialize for OrderLegacyPromotion
impl Part for OrderLegacyPromotion
Auto Trait Implementations§
impl Freeze for OrderLegacyPromotion
impl RefUnwindSafe for OrderLegacyPromotion
impl Send for OrderLegacyPromotion
impl Sync for OrderLegacyPromotion
impl Unpin for OrderLegacyPromotion
impl UnwindSafe for OrderLegacyPromotion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more