pub struct InventoryQuantity {
pub quantity: f64,
pub unit_of_measurement: InventoryUnitOfMeasurement,
}Expand description
InventoryQuantity : Quantity of inventory with an associated measurement unit context.
Fields§
§quantity: f64Quantity of the respective inventory.
unit_of_measurement: InventoryUnitOfMeasurementImplementations§
Source§impl InventoryQuantity
impl InventoryQuantity
Sourcepub fn new(
quantity: f64,
unit_of_measurement: InventoryUnitOfMeasurement,
) -> InventoryQuantity
pub fn new( quantity: f64, unit_of_measurement: InventoryUnitOfMeasurement, ) -> InventoryQuantity
Quantity of inventory with an associated measurement unit context.
Trait Implementations§
Source§impl Clone for InventoryQuantity
impl Clone for InventoryQuantity
Source§fn clone(&self) -> InventoryQuantity
fn clone(&self) -> InventoryQuantity
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 InventoryQuantity
impl Debug for InventoryQuantity
Source§impl Default for InventoryQuantity
impl Default for InventoryQuantity
Source§fn default() -> InventoryQuantity
fn default() -> InventoryQuantity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InventoryQuantity
impl<'de> Deserialize<'de> for InventoryQuantity
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 InventoryQuantity
impl PartialEq for InventoryQuantity
Source§impl Serialize for InventoryQuantity
impl Serialize for InventoryQuantity
impl StructuralPartialEq for InventoryQuantity
Auto Trait Implementations§
impl Freeze for InventoryQuantity
impl RefUnwindSafe for InventoryQuantity
impl Send for InventoryQuantity
impl Sync for InventoryQuantity
impl Unpin for InventoryQuantity
impl UnwindSafe for InventoryQuantity
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