pub struct PackedQuantity {
pub amount: i32,
pub unit_of_measure: UnitOfMeasure,
pub unit_size: Option<i32>,
}Expand description
PackedQuantity : 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§
Source§impl PackedQuantity
impl PackedQuantity
Sourcepub fn new(amount: i32, unit_of_measure: UnitOfMeasure) -> PackedQuantity
pub fn new(amount: i32, unit_of_measure: UnitOfMeasure) -> PackedQuantity
Details of item quantity.
Trait Implementations§
Source§impl Clone for PackedQuantity
impl Clone for PackedQuantity
Source§fn clone(&self) -> PackedQuantity
fn clone(&self) -> PackedQuantity
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 PackedQuantity
impl Debug for PackedQuantity
Source§impl Default for PackedQuantity
impl Default for PackedQuantity
Source§fn default() -> PackedQuantity
fn default() -> PackedQuantity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackedQuantity
impl<'de> Deserialize<'de> for PackedQuantity
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 PackedQuantity
impl PartialEq for PackedQuantity
Source§impl Serialize for PackedQuantity
impl Serialize for PackedQuantity
impl StructuralPartialEq for PackedQuantity
Auto Trait Implementations§
impl Freeze for PackedQuantity
impl RefUnwindSafe for PackedQuantity
impl Send for PackedQuantity
impl Sync for PackedQuantity
impl Unpin for PackedQuantity
impl UnwindSafe for PackedQuantity
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