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
sourceimpl Clone for LinkSpecialOffers
impl Clone for LinkSpecialOffers
sourcefn clone(&self) -> LinkSpecialOffers
fn clone(&self) -> LinkSpecialOffers
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LinkSpecialOffers
impl Debug for LinkSpecialOffers
sourceimpl Default for LinkSpecialOffers
impl Default for LinkSpecialOffers
sourcefn default() -> LinkSpecialOffers
fn default() -> LinkSpecialOffers
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LinkSpecialOffers
impl<'de> Deserialize<'de> for LinkSpecialOffers
sourcefn 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
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more