pub struct QuantityElement {
pub epc_class: String,
pub quantity: Option<f64>,
pub uom: Option<String>,
}Expand description
An element representing a quantity of EPCs of a single class.
Fields§
§epc_class: StringThe EPC class (e.g. GTIN class)
quantity: Option<f64>Quantity of items in the class
uom: Option<String>Unit of measure (e.g. KGM)
Trait Implementations§
Source§impl Clone for QuantityElement
impl Clone for QuantityElement
Source§fn clone(&self) -> QuantityElement
fn clone(&self) -> QuantityElement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuantityElement
impl Debug for QuantityElement
Source§impl<'de> Deserialize<'de> for QuantityElement
impl<'de> Deserialize<'de> for QuantityElement
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 QuantityElement
impl PartialEq for QuantityElement
Source§fn eq(&self, other: &QuantityElement) -> bool
fn eq(&self, other: &QuantityElement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QuantityElement
impl Serialize for QuantityElement
impl StructuralPartialEq for QuantityElement
Auto Trait Implementations§
impl Freeze for QuantityElement
impl RefUnwindSafe for QuantityElement
impl Send for QuantityElement
impl Sync for QuantityElement
impl Unpin for QuantityElement
impl UnsafeUnpin for QuantityElement
impl UnwindSafe for QuantityElement
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