pub struct ItemQuantity {
pub amount: i32,
pub unit_of_measure: UnitOfMeasure,
pub unit_size: Option<i32>,
}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.
Implementations
sourceimpl 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
sourceimpl Clone for ItemQuantity
impl Clone for ItemQuantity
sourcefn clone(&self) -> ItemQuantity
fn clone(&self) -> ItemQuantity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ItemQuantity
impl Debug for ItemQuantity
sourceimpl Default for ItemQuantity
impl Default for ItemQuantity
sourcefn default() -> ItemQuantity
fn default() -> ItemQuantity
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ItemQuantity
impl<'de> Deserialize<'de> for ItemQuantity
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
sourceimpl PartialEq<ItemQuantity> for ItemQuantity
impl PartialEq<ItemQuantity> for ItemQuantity
sourcefn eq(&self, other: &ItemQuantity) -> bool
fn eq(&self, other: &ItemQuantity) -> bool
sourceimpl Serialize for ItemQuantity
impl Serialize for ItemQuantity
impl StructuralPartialEq for ItemQuantity
Auto Trait Implementations
impl RefUnwindSafe for ItemQuantity
impl Send for ItemQuantity
impl Sync for ItemQuantity
impl Unpin for ItemQuantity
impl UnwindSafe for ItemQuantity
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