pub struct PreferredDeliveryTime {
pub business_hours: Option<Vec<BusinessHours>>,
pub exception_dates: Option<Vec<ExceptionDates>>,
}Expand description
PreferredDeliveryTime : The time window when the delivery is preferred.
Fields§
§business_hours: Option<Vec<BusinessHours>>Business hours when the business is open for deliveries.
exception_dates: Option<Vec<ExceptionDates>>Dates when the business is closed during the next 30 days.
Implementations§
Source§impl PreferredDeliveryTime
impl PreferredDeliveryTime
Sourcepub fn new() -> PreferredDeliveryTime
pub fn new() -> PreferredDeliveryTime
The time window when the delivery is preferred.
Trait Implementations§
Source§impl Clone for PreferredDeliveryTime
impl Clone for PreferredDeliveryTime
Source§fn clone(&self) -> PreferredDeliveryTime
fn clone(&self) -> PreferredDeliveryTime
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreferredDeliveryTime
impl Debug for PreferredDeliveryTime
Source§impl Default for PreferredDeliveryTime
impl Default for PreferredDeliveryTime
Source§fn default() -> PreferredDeliveryTime
fn default() -> PreferredDeliveryTime
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PreferredDeliveryTime
impl<'de> Deserialize<'de> for PreferredDeliveryTime
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PreferredDeliveryTime
impl PartialEq for PreferredDeliveryTime
Source§impl Serialize for PreferredDeliveryTime
impl Serialize for PreferredDeliveryTime
impl StructuralPartialEq for PreferredDeliveryTime
Auto Trait Implementations§
impl Freeze for PreferredDeliveryTime
impl RefUnwindSafe for PreferredDeliveryTime
impl Send for PreferredDeliveryTime
impl Sync for PreferredDeliveryTime
impl Unpin for PreferredDeliveryTime
impl UnwindSafe for PreferredDeliveryTime
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
Mutably borrows from an owned value. Read more