Struct google_api_proto::google::shopping::merchant::accounts::v1beta::DeliveryTime
source · pub struct DeliveryTime {
pub min_transit_days: Option<i32>,
pub max_transit_days: Option<i32>,
pub cutoff_time: Option<CutoffTime>,
pub min_handling_days: Option<i32>,
pub max_handling_days: Option<i32>,
pub transit_time_table: Option<TransitTable>,
pub handling_business_day_config: Option<BusinessDayConfig>,
pub transit_business_day_config: Option<BusinessDayConfig>,
pub warehouse_based_delivery_times: Vec<WarehouseBasedDeliveryTime>,
}
Expand description
Time spent in various aspects from order to the delivery of the product.
Fields§
§min_transit_days: Option<i32>
Minimum number of business days that is spent in transit. 0 means same
day delivery, 1 means next day delivery.
Either min_transit_days
, max_transit_days
or
transit_time_table
must be set, but not both.
max_transit_days: Option<i32>
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 min_transit_days
.
cutoff_time: Option<CutoffTime>
Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST.
min_handling_days: Option<i32>
Minimum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped.
max_handling_days: Option<i32>
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 min_handling_days
.
transit_time_table: Option<TransitTable>
Transit time table, number of business days spent in transit based on row
and column dimensions. Either min_transit_days
, max_transit_days
or
transit_time_table
can be set, but not both.
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.
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.
warehouse_based_delivery_times: Vec<WarehouseBasedDeliveryTime>
Optional. 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 [delivery time][[google.shopping.content.bundles.ShippingSetting.DeliveryTime] should be set.
Implementations§
source§impl DeliveryTime
impl DeliveryTime
sourcepub fn min_transit_days(&self) -> i32
pub fn min_transit_days(&self) -> i32
Returns the value of min_transit_days
, or the default value if min_transit_days
is unset.
sourcepub fn max_transit_days(&self) -> i32
pub fn max_transit_days(&self) -> i32
Returns the value of max_transit_days
, or the default value if max_transit_days
is unset.
sourcepub fn min_handling_days(&self) -> i32
pub fn min_handling_days(&self) -> i32
Returns the value of min_handling_days
, or the default value if min_handling_days
is unset.
sourcepub fn max_handling_days(&self) -> i32
pub fn max_handling_days(&self) -> i32
Returns the value of max_handling_days
, or the default value if max_handling_days
is unset.
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§impl Message for DeliveryTime
impl Message for DeliveryTime
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DeliveryTime
impl PartialEq for DeliveryTime
source§fn eq(&self, other: &DeliveryTime) -> bool
fn eq(&self, other: &DeliveryTime) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request