pub struct Shipment {Show 15 fields
pub shipment_id: String,
pub amazon_order_id: String,
pub seller_order_id: Option<String>,
pub item_list: Vec<Item>,
pub ship_from_address: Box<Address>,
pub ship_to_address: Box<Address>,
pub package_dimensions: Box<PackageDimensions>,
pub weight: Box<Weight>,
pub insurance: Box<CurrencyAmount>,
pub shipping_service: Box<ShippingService>,
pub label: Box<Label>,
pub status: ShipmentStatus,
pub tracking_id: Option<String>,
pub created_date: String,
pub last_updated_date: Option<String>,
}Expand description
Shipment : The details of a shipment, including the shipment status.
Fields
shipment_id: StringAn Amazon-defined shipment identifier.
amazon_order_id: StringAn Amazon-defined order identifier, in 3-7-7 format.
seller_order_id: Option<String>A seller-defined order identifier.
item_list: Vec<Item>The list of items to be included in a shipment.
ship_from_address: Box<Address>ship_to_address: Box<Address>package_dimensions: Box<PackageDimensions>weight: Box<Weight>insurance: Box<CurrencyAmount>shipping_service: Box<ShippingService>label: Box<Label>status: ShipmentStatustracking_id: Option<String>The shipment tracking identifier provided by the carrier.
created_date: Stringlast_updated_date: Option<String>Implementations
sourceimpl Shipment
impl Shipment
sourcepub fn new(
shipment_id: String,
amazon_order_id: String,
item_list: Vec<Item>,
ship_from_address: Address,
ship_to_address: Address,
package_dimensions: PackageDimensions,
weight: Weight,
insurance: CurrencyAmount,
shipping_service: ShippingService,
label: Label,
status: ShipmentStatus,
created_date: String
) -> Shipment
pub fn new(
shipment_id: String,
amazon_order_id: String,
item_list: Vec<Item>,
ship_from_address: Address,
ship_to_address: Address,
package_dimensions: PackageDimensions,
weight: Weight,
insurance: CurrencyAmount,
shipping_service: ShippingService,
label: Label,
status: ShipmentStatus,
created_date: String
) -> Shipment
The details of a shipment, including the shipment status.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Shipment
impl<'de> Deserialize<'de> for Shipment
sourcefn 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 StructuralPartialEq for Shipment
Auto Trait Implementations
impl RefUnwindSafe for Shipment
impl Send for Shipment
impl Sync for Shipment
impl Unpin for Shipment
impl UnwindSafe for Shipment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more