pub struct DeliveryPreferences {
pub drop_off_location: Option<String>,
pub preferred_delivery_time: Option<Box<PreferredDeliveryTime>>,
pub other_attributes: Option<Vec<OtherDeliveryAttributes>>,
pub address_instructions: Option<String>,
}Expand description
DeliveryPreferences : Contains all of the delivery instructions provided by the customer for the shipping address.
Fields§
§drop_off_location: Option<String>Drop-off location selected by the customer.
preferred_delivery_time: Option<Box<PreferredDeliveryTime>>§other_attributes: Option<Vec<OtherDeliveryAttributes>>Enumerated list of miscellaneous delivery attributes associated with the shipping address.
address_instructions: Option<String>Building instructions, nearby landmark or navigation instructions.
Implementations§
Source§impl DeliveryPreferences
impl DeliveryPreferences
Sourcepub fn new() -> DeliveryPreferences
pub fn new() -> DeliveryPreferences
Contains all of the delivery instructions provided by the customer for the shipping address.
Trait Implementations§
Source§impl Clone for DeliveryPreferences
impl Clone for DeliveryPreferences
Source§fn clone(&self) -> DeliveryPreferences
fn clone(&self) -> DeliveryPreferences
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 DeliveryPreferences
impl Debug for DeliveryPreferences
Source§impl Default for DeliveryPreferences
impl Default for DeliveryPreferences
Source§fn default() -> DeliveryPreferences
fn default() -> DeliveryPreferences
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeliveryPreferences
impl<'de> Deserialize<'de> for DeliveryPreferences
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 DeliveryPreferences
impl PartialEq for DeliveryPreferences
Source§impl Serialize for DeliveryPreferences
impl Serialize for DeliveryPreferences
impl StructuralPartialEq for DeliveryPreferences
Auto Trait Implementations§
impl Freeze for DeliveryPreferences
impl RefUnwindSafe for DeliveryPreferences
impl Send for DeliveryPreferences
impl Sync for DeliveryPreferences
impl Unpin for DeliveryPreferences
impl UnwindSafe for DeliveryPreferences
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