pub struct Item {
pub item_value: Option<Box<Currency>>,
pub description: Option<String>,
pub item_identifier: Option<String>,
pub quantity: i32,
pub weight: Option<Box<Weight>>,
pub liquid_volume: Option<Box<LiquidVolume>>,
pub is_hazmat: Option<bool>,
pub dangerous_goods_details: Option<Box<DangerousGoodsDetails>>,
pub product_type: Option<String>,
pub invoice_details: Option<Box<InvoiceDetails>>,
pub serial_numbers: Option<Vec<String>>,
pub direct_fulfillment_item_identifiers: Option<Box<DirectFulfillmentItemIdentifiers>>,
}Expand description
Item : An item in a package.
Fields§
§item_value: Option<Box<Currency>>§description: Option<String>The product description of the item.
item_identifier: Option<String>A unique identifier for an item provided by the client.
quantity: i32The number of units. This value is required.
weight: Option<Box<Weight>>§liquid_volume: Option<Box<LiquidVolume>>§is_hazmat: Option<bool>When true, the item qualifies as hazardous materials (hazmat). Defaults to false.
dangerous_goods_details: Option<Box<DangerousGoodsDetails>>§product_type: Option<String>The product type of the item.
invoice_details: Option<Box<InvoiceDetails>>§serial_numbers: Option<Vec<String>>A list of unique serial numbers in an Amazon package that can be used to guarantee non-fraudulent items. The number of serial numbers in the list must be less than or equal to the quantity of items being shipped. Only applicable when channel source is Amazon.
direct_fulfillment_item_identifiers: Option<Box<DirectFulfillmentItemIdentifiers>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
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 StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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