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
impl Clone for DeliveryTime
Source§fn clone(&self) -> DeliveryTime
fn clone(&self) -> DeliveryTime
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeliveryTime
impl Debug for DeliveryTime
Source§impl Default for DeliveryTime
impl Default for DeliveryTime
Source§fn default() -> DeliveryTime
fn default() -> DeliveryTime
Source§impl<'de> Deserialize<'de> for DeliveryTime
impl<'de> Deserialize<'de> for DeliveryTime
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for DeliveryTime
impl Serialize for DeliveryTime
impl Part for DeliveryTime
Auto Trait Implementations§
impl Freeze for DeliveryTime
impl RefUnwindSafe for DeliveryTime
impl Send for DeliveryTime
impl Sync for DeliveryTime
impl Unpin for DeliveryTime
impl UnwindSafe for DeliveryTime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more