Struct google_content2::api::RateGroup[][src]

pub struct RateGroup {
    pub applicable_shipping_labels: Option<Vec<String>>,
    pub carrier_rates: Option<Vec<CarrierRate>>,
    pub main_table: Option<Table>,
    pub name: Option<String>,
    pub single_value: Option<Value>,
    pub subtables: Option<Vec<Table>>,
}
Expand description

There is no detailed description.

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

Fields

applicable_shipping_labels: Option<Vec<String>>

A list of shipping labels defining the products to which this rate group applies to. This is a disjunction: only one of the labels has to match for the rate group to apply. May only be empty for the last rate group of a service. Required.

carrier_rates: Option<Vec<CarrierRate>>

A list of carrier rates that can be referred to by mainTable or singleValue.

main_table: Option<Table>

A table defining the rate group, when singleValue is not expressive enough. Can only be set if singleValue is not set.

name: Option<String>

Name of the rate group. Optional. If set has to be unique within shipping service.

single_value: Option<Value>

The value of the rate group (e.g. flat rate $10). Can only be set if mainTable and subtables are not set.

subtables: Option<Vec<Table>>

A list of subtables referred to by mainTable. Can only be set if mainTable is set.

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.