[][src]Struct google_content2_sandbox::OrderLegacyPromotionBenefit

pub struct OrderLegacyPromotionBenefit {
    pub offer_ids: Option<Vec<String>>,
    pub discount: Option<Price>,
    pub type_: Option<String>,
    pub tax_impact: Option<Price>,
    pub sub_type: Option<String>,
}

There is no detailed description.

This type is not used in any activity, and only used as part of another schema.

Fields

offer_ids: Option<Vec<String>>

The OfferId(s) that were purchased in this order and map to this specific benefit of the promotion.

discount: Option<Price>

The discount in the order price when the promotion is applied.

type_: Option<String>

Describes whether the promotion applies to products (e.g. 20% off) or to shipping (e.g. Free Shipping).

tax_impact: Option<Price>

The impact on tax when the promotion is applied.

sub_type: Option<String>

Further describes the benefit of the promotion. Note that we will expand on this enumeration as we support new promotion sub-types.

Trait Implementations

impl Part for OrderLegacyPromotionBenefit[src]

impl Clone for OrderLegacyPromotionBenefit[src]

impl Default for OrderLegacyPromotionBenefit[src]

impl Debug for OrderLegacyPromotionBenefit[src]

impl Serialize for OrderLegacyPromotionBenefit[src]

impl<'de> Deserialize<'de> for OrderLegacyPromotionBenefit[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]