pub struct ItemQuantity {
pub amount: Option<i32>,
pub unit_of_measure: Option<UnitOfMeasure>,
pub unit_size: Option<i32>,
}Expand description
ItemQuantity : Details of quantity ordered.
Fields§
§amount: Option<i32>Acknowledged quantity. This value should not be zero.
unit_of_measure: Option<UnitOfMeasure>Unit of measure for the acknowledged quantity.
unit_size: Option<i32>The case size, in the event that we ordered using cases.
Implementations§
Source§impl ItemQuantity
impl ItemQuantity
Sourcepub fn new() -> ItemQuantity
pub fn new() -> ItemQuantity
Details of quantity ordered.
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