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>,
    pub warehouse_based_delivery_times: Option<Vec<WarehouseBasedDeliveryTime>>,
}
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.

§warehouse_based_delivery_times: Option<Vec<WarehouseBasedDeliveryTime>>

Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in DeliveryTime should be set.

Trait Implementations§

source§

impl Clone for DeliveryTime

source§

fn clone(&self) -> DeliveryTime

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DeliveryTime

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DeliveryTime

source§

fn default() -> DeliveryTime

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

impl<'de> Deserialize<'de> for DeliveryTime

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for DeliveryTime

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Part for DeliveryTime

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

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