Struct google_content2::OrderPromotion
source · pub struct OrderPromotion {
pub long_title: Option<String>,
pub generic_redemption_code: Option<String>,
pub benefits: Option<Vec<OrderPromotionBenefit>>,
pub redemption_channel: Option<String>,
pub product_applicability: Option<String>,
pub effective_dates: Option<String>,
pub id: 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§
§long_title: Option<String>The full title of the promotion.
generic_redemption_code: Option<String>Optional. The text code that corresponds to the promotion when applied on the retailer?s website.
benefits: Option<Vec<OrderPromotionBenefit>>no description provided
redemption_channel: Option<String>Indicates that the promotion is valid online.
product_applicability: Option<String>Whether the promotion is applicable to all products or only specific products.
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.
id: Option<String>The unique ID of the promotion.
Trait Implementations§
source§impl Clone for OrderPromotion
impl Clone for OrderPromotion
source§fn clone(&self) -> OrderPromotion
fn clone(&self) -> OrderPromotion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for OrderPromotion
impl Debug for OrderPromotion
source§impl Default for OrderPromotion
impl Default for OrderPromotion
source§fn default() -> OrderPromotion
fn default() -> OrderPromotion
source§impl<'de> Deserialize<'de> for OrderPromotion
impl<'de> Deserialize<'de> for OrderPromotion
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 OrderPromotion
impl Serialize for OrderPromotion
impl Part for OrderPromotion
Auto Trait Implementations§
impl Freeze for OrderPromotion
impl RefUnwindSafe for OrderPromotion
impl Send for OrderPromotion
impl Sync for OrderPromotion
impl Unpin for OrderPromotion
impl UnwindSafe for OrderPromotion
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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