Struct google_content2::api::DeliveryTime[][src]

pub struct DeliveryTime {
    pub cutoff_time: Option<CutoffTime>,
    pub handling_business_day_config: Option<BusinessDayConfig>,
    pub holiday_cutoffs: Option<Vec<HolidayCutoff>>,
    pub max_handling_time_in_days: Option<u32>,
    pub max_transit_time_in_days: Option<u32>,
    pub min_handling_time_in_days: Option<u32>,
    pub min_transit_time_in_days: Option<u32>,
    pub transit_business_day_config: Option<BusinessDayConfig>,
    pub transit_time_table: Option<TransitTable>,
}
Expand description

There is no detailed description.

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

Fields

cutoff_time: Option<CutoffTime>

Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.

handling_business_day_config: Option<BusinessDayConfig>

The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed.

holiday_cutoffs: Option<Vec<HolidayCutoff>>

Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping.

max_handling_time_in_days: Option<u32>

Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to minHandlingTimeInDays.

max_transit_time_in_days: Option<u32>

Maximum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Must be greater than or equal to minTransitTimeInDays.

min_handling_time_in_days: Option<u32>

Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.

min_transit_time_in_days: Option<u32>

Minimum number of business days that is spent in transit. 0 means same day delivery, 1 means next day delivery. Either {min,max}TransitTimeInDays or transitTimeTable must be set, but not both.

transit_business_day_config: Option<BusinessDayConfig>

The business days during which orders can be in-transit. If not provided, Monday to Friday business days will be assumed.

transit_time_table: Option<TransitTable>

Transit time table, number of business days spent in transit based on row and column dimensions. Either {min,max}TransitTimeInDays or transitTimeTable can be set, but not both.

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.