[][src]Struct google_content2::CarrierRate

pub struct CarrierRate {
    pub origin_postal_code: Option<String>,
    pub flat_adjustment: Option<Price>,
    pub name: Option<String>,
    pub carrier_name: Option<String>,
    pub carrier_service: Option<String>,
    pub percentage_adjustment: Option<String>,
}

There is no detailed description.

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

Fields

origin_postal_code: Option<String>

Shipping origin for this carrier rate. Required.

flat_adjustment: Option<Price>

Additive shipping rate modifier. Can be negative. For example { "value": "1", "currency" : "USD" } adds $1 to the rate, { "value": "-3", "currency" : "USD" } removes $3 from the rate. Optional.

name: Option<String>

Name of the carrier rate. Must be unique per rate group. Required.

carrier_name: Option<String>

Carrier service, such as "UPS" or "Fedex". The list of supported carriers can be retrieved via the getSupportedCarriers method. Required.

carrier_service: Option<String>

Carrier service, such as "ground" or "2 days". The list of supported services for a carrier can be retrieved via the getSupportedCarriers method. Required.

percentage_adjustment: Option<String>

Multiplicative shipping rate modifier as a number in decimal notation. Can be negative. For example "5.4" increases the rate by 5.4%, "-3" decreases the rate by 3%. Optional.

Trait Implementations

impl Clone for CarrierRate[src]

impl Debug for CarrierRate[src]

impl Default for CarrierRate[src]

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

impl Part for CarrierRate[src]

impl Serialize for CarrierRate[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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 = Infallible

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> Typeable for T where
    T: Any