Struct google_content2::CarrierRate [] [src]

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

Shipping origin for this carrier rate. Required.

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 of the carrier rate. Must be unique per rate group. Required.

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

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

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 Default for CarrierRate
[src]

Returns the "default value" for a type. Read more

impl Clone for CarrierRate
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for CarrierRate
[src]

Formats the value using the given formatter.

impl Part for CarrierRate
[src]