pub struct ShippingInfo {
pub tracking_number: Option<String>,
pub carrier: Option<String>,
pub address: Option<String>,
pub delivery_date: Option<i64>,
}Expand description
Shipping information for an order.
Fields§
§tracking_number: Option<String>Tracking number.
carrier: Option<String>Carrier name.
address: Option<String>Shipping address.
delivery_date: Option<i64>Expected delivery date (Unix timestamp).
Trait Implementations§
Source§impl Clone for ShippingInfo
impl Clone for ShippingInfo
Source§fn clone(&self) -> ShippingInfo
fn clone(&self) -> ShippingInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShippingInfo
impl Debug for ShippingInfo
Source§impl<'de> Deserialize<'de> for ShippingInfo
impl<'de> Deserialize<'de> for ShippingInfo
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
impl Eq for ShippingInfo
Source§impl PartialEq for ShippingInfo
impl PartialEq for ShippingInfo
Source§fn eq(&self, other: &ShippingInfo) -> bool
fn eq(&self, other: &ShippingInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ShippingInfo
impl Serialize for ShippingInfo
impl StructuralPartialEq for ShippingInfo
Auto Trait Implementations§
impl Freeze for ShippingInfo
impl RefUnwindSafe for ShippingInfo
impl Send for ShippingInfo
impl Sync for ShippingInfo
impl Unpin for ShippingInfo
impl UnsafeUnpin for ShippingInfo
impl UnwindSafe for ShippingInfo
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