Struct google_content2_sandbox::OrderLegacyPromotionBenefit [−][src]
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 Default for OrderLegacyPromotionBenefit
[src]
impl Default for OrderLegacyPromotionBenefit
fn default() -> OrderLegacyPromotionBenefit
[src]
fn default() -> OrderLegacyPromotionBenefit
Returns the "default value" for a type. Read more
impl Clone for OrderLegacyPromotionBenefit
[src]
impl Clone for OrderLegacyPromotionBenefit
fn clone(&self) -> OrderLegacyPromotionBenefit
[src]
fn clone(&self) -> OrderLegacyPromotionBenefit
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for OrderLegacyPromotionBenefit
[src]
impl Debug for OrderLegacyPromotionBenefit
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Part for OrderLegacyPromotionBenefit
[src]
impl Part for OrderLegacyPromotionBenefit
Auto Trait Implementations
impl Send for OrderLegacyPromotionBenefit
impl Send for OrderLegacyPromotionBenefit
impl Sync for OrderLegacyPromotionBenefit
impl Sync for OrderLegacyPromotionBenefit