pub struct MeasuredUnitV1 {
pub unit_type: String,
pub quantity: u64,
}Fields§
§unit_type: String§quantity: u64Trait Implementations§
Source§impl Clone for MeasuredUnitV1
impl Clone for MeasuredUnitV1
Source§fn clone(&self) -> MeasuredUnitV1
fn clone(&self) -> MeasuredUnitV1
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 MeasuredUnitV1
impl Debug for MeasuredUnitV1
Source§impl<'de> Deserialize<'de> for MeasuredUnitV1
impl<'de> Deserialize<'de> for MeasuredUnitV1
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
impl Eq for MeasuredUnitV1
Source§impl PartialEq for MeasuredUnitV1
impl PartialEq for MeasuredUnitV1
Source§impl Serialize for MeasuredUnitV1
impl Serialize for MeasuredUnitV1
impl StructuralPartialEq for MeasuredUnitV1
Auto Trait Implementations§
impl Freeze for MeasuredUnitV1
impl RefUnwindSafe for MeasuredUnitV1
impl Send for MeasuredUnitV1
impl Sync for MeasuredUnitV1
impl Unpin for MeasuredUnitV1
impl UnsafeUnpin for MeasuredUnitV1
impl UnwindSafe for MeasuredUnitV1
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