Struct google_content2::api::CarrierRate[][src]

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

There is no detailed description.

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

Fields

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.

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.

origin_postal_code: Option<String>

Shipping origin for this carrier rate. 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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.