pub struct InboundOrder {
pub created_at: String,
pub destination_details: Option<Box<DestinationDetails>>,
pub external_reference_id: Option<String>,
pub order_id: String,
pub order_status: InboundStatus,
pub origin_address: Box<Address>,
pub packages_to_inbound: Vec<DistributionPackageQuantity>,
pub preferences: Option<Box<InboundPreferences>>,
pub updated_at: Option<String>,
}Expand description
InboundOrder : Represents an AWD inbound order.
Fields§
§created_at: StringDate when this order was created.
destination_details: Option<Box<DestinationDetails>>§external_reference_id: Option<String>Reference ID that can be used to correlate the order with partner resources.
order_id: StringInbound order ID.
order_status: InboundStatus§origin_address: Box<Address>§packages_to_inbound: Vec<DistributionPackageQuantity>List of packages to be inbounded.
preferences: Option<Box<InboundPreferences>>§updated_at: Option<String>Date when this order was last updated.
Implementations§
Source§impl InboundOrder
impl InboundOrder
Sourcepub fn new(
created_at: String,
order_id: String,
order_status: InboundStatus,
origin_address: Address,
packages_to_inbound: Vec<DistributionPackageQuantity>,
) -> InboundOrder
pub fn new( created_at: String, order_id: String, order_status: InboundStatus, origin_address: Address, packages_to_inbound: Vec<DistributionPackageQuantity>, ) -> InboundOrder
Represents an AWD inbound order.
Trait Implementations§
Source§impl Clone for InboundOrder
impl Clone for InboundOrder
Source§fn clone(&self) -> InboundOrder
fn clone(&self) -> InboundOrder
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 InboundOrder
impl Debug for InboundOrder
Source§impl Default for InboundOrder
impl Default for InboundOrder
Source§fn default() -> InboundOrder
fn default() -> InboundOrder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InboundOrder
impl<'de> Deserialize<'de> for InboundOrder
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 InboundOrder
impl PartialEq for InboundOrder
Source§impl Serialize for InboundOrder
impl Serialize for InboundOrder
impl StructuralPartialEq for InboundOrder
Auto Trait Implementations§
impl Freeze for InboundOrder
impl RefUnwindSafe for InboundOrder
impl Send for InboundOrder
impl Sync for InboundOrder
impl Unpin for InboundOrder
impl UnsafeUnpin for InboundOrder
impl UnwindSafe for InboundOrder
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