pub struct PackageDetail {
pub package_reference_id: String,
pub carrier_code: String,
pub carrier_name: Option<String>,
pub shipping_method: Option<String>,
pub tracking_number: String,
pub ship_date: String,
pub ship_from_supply_source_id: Option<String>,
pub order_items: Vec<ConfirmShipmentOrderItem>,
}Expand description
PackageDetail : Properties of packages
Fields§
§package_reference_id: StringA seller-supplied identifier that uniquely identifies a package within the scope of an order. Only positive numeric values are supported.
carrier_code: StringIdentifies the carrier that will deliver the package. This field is required for all marketplaces. For more information, refer to the CarrierCode announcement.
carrier_name: Option<String>Carrier name that will deliver the package. Required when carrierCode is "Other"
shipping_method: Option<String>Ship method to be used for shipping the order.
tracking_number: StringThe tracking number used to obtain tracking and delivery information.
ship_date: StringThe shipping date for the package. Must be in ISO 8601 date/time format.
ship_from_supply_source_id: Option<String>The unique identifier for the supply source.
order_items: Vec<ConfirmShipmentOrderItem>A list of order items.
Implementations§
Source§impl PackageDetail
impl PackageDetail
Sourcepub fn new(
package_reference_id: String,
carrier_code: String,
tracking_number: String,
ship_date: String,
order_items: Vec<ConfirmShipmentOrderItem>,
) -> PackageDetail
pub fn new( package_reference_id: String, carrier_code: String, tracking_number: String, ship_date: String, order_items: Vec<ConfirmShipmentOrderItem>, ) -> PackageDetail
Properties of packages
Trait Implementations§
Source§impl Clone for PackageDetail
impl Clone for PackageDetail
Source§fn clone(&self) -> PackageDetail
fn clone(&self) -> PackageDetail
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 PackageDetail
impl Debug for PackageDetail
Source§impl Default for PackageDetail
impl Default for PackageDetail
Source§fn default() -> PackageDetail
fn default() -> PackageDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageDetail
impl<'de> Deserialize<'de> for PackageDetail
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 PackageDetail
impl PartialEq for PackageDetail
Source§impl Serialize for PackageDetail
impl Serialize for PackageDetail
impl StructuralPartialEq for PackageDetail
Auto Trait Implementations§
impl Freeze for PackageDetail
impl RefUnwindSafe for PackageDetail
impl Send for PackageDetail
impl Sync for PackageDetail
impl Unpin for PackageDetail
impl UnwindSafe for PackageDetail
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