pub struct ItemQuantity {
pub amount: i32,
pub unit_of_measure: UnitOfMeasure,
pub unit_size: Option<i32>,
pub total_weight: Option<Box<TotalWeight>>,
}Expand description
ItemQuantity : Details of item quantity.
Fields§
§amount: i32Amount of units shipped for a specific item at a shipment level. If the item is present only in certain cartons or pallets within the shipment, please provide this at the appropriate carton or pallet level.
unit_of_measure: UnitOfMeasureUnit of measure for the shipped quantity.
unit_size: Option<i32>The case size, in the event that we ordered using cases. Otherwise, 1.
total_weight: Option<Box<TotalWeight>>Implementations§
Source§impl ItemQuantity
impl ItemQuantity
Sourcepub fn new(amount: i32, unit_of_measure: UnitOfMeasure) -> ItemQuantity
pub fn new(amount: i32, unit_of_measure: UnitOfMeasure) -> ItemQuantity
Details of item quantity.
Trait Implementations§
Source§impl Clone for ItemQuantity
impl Clone for ItemQuantity
Source§fn clone(&self) -> ItemQuantity
fn clone(&self) -> ItemQuantity
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 ItemQuantity
impl Debug for ItemQuantity
Source§impl Default for ItemQuantity
impl Default for ItemQuantity
Source§fn default() -> ItemQuantity
fn default() -> ItemQuantity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ItemQuantity
impl<'de> Deserialize<'de> for ItemQuantity
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 ItemQuantity
impl PartialEq for ItemQuantity
Source§impl Serialize for ItemQuantity
impl Serialize for ItemQuantity
impl StructuralPartialEq for ItemQuantity
Auto Trait Implementations§
impl Freeze for ItemQuantity
impl RefUnwindSafe for ItemQuantity
impl Send for ItemQuantity
impl Sync for ItemQuantity
impl Unpin for ItemQuantity
impl UnsafeUnpin for ItemQuantity
impl UnwindSafe for ItemQuantity
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