Struct google_gan1_beta1::api::LinkSpecialOffers
source · pub struct LinkSpecialOffers {
pub free_gift: Option<bool>,
pub free_shipping: Option<bool>,
pub free_shipping_min: Option<Money>,
pub percent_off: Option<f64>,
pub percent_off_min: Option<Money>,
pub price_cut: Option<Money>,
pub price_cut_min: Option<Money>,
pub promotion_codes: Option<Vec<String>>,
}
Expand description
Special offers on the link.
This type is not used in any activity, and only used as part of another schema.
Fields§
§free_gift: Option<bool>
Whether there is a free gift
free_shipping: Option<bool>
Whether there is free shipping
free_shipping_min: Option<Money>
Minimum purchase amount for free shipping promotion
percent_off: Option<f64>
Percent off on the purchase
percent_off_min: Option<Money>
Minimum purchase amount for percent off promotion
price_cut: Option<Money>
Price cut on the purchase
price_cut_min: Option<Money>
Minimum purchase amount for price cut promotion
promotion_codes: Option<Vec<String>>
List of promotion code associated with the link
Trait Implementations§
source§impl Clone for LinkSpecialOffers
impl Clone for LinkSpecialOffers
source§fn clone(&self) -> LinkSpecialOffers
fn clone(&self) -> LinkSpecialOffers
Returns a copy of the value. Read more
1.0.0 · 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 LinkSpecialOffers
impl Debug for LinkSpecialOffers
source§impl Default for LinkSpecialOffers
impl Default for LinkSpecialOffers
source§fn default() -> LinkSpecialOffers
fn default() -> LinkSpecialOffers
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LinkSpecialOffers
impl<'de> Deserialize<'de> for LinkSpecialOffers
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for LinkSpecialOffers
impl Serialize for LinkSpecialOffers
impl NestedType for LinkSpecialOffers
impl Part for LinkSpecialOffers
Auto Trait Implementations§
impl RefUnwindSafe for LinkSpecialOffers
impl Send for LinkSpecialOffers
impl Sync for LinkSpecialOffers
impl Unpin for LinkSpecialOffers
impl UnwindSafe for LinkSpecialOffers
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