pub struct QuantityValue {
pub mantissa: i64,
pub scale: i32,
pub unit: String,
}Expand description
— Quantity —
Fixed-point decimal value with unit: numeric value = mantissa * 10^(-scale).
unit is a free-form string at the value level; the schema’s
quantity-spec constrains the accepted set.
Fields§
§mantissa: i64§scale: i32§unit: StringTrait Implementations§
Source§impl Clone for QuantityValue
impl Clone for QuantityValue
Source§fn clone(&self) -> QuantityValue
fn clone(&self) -> QuantityValue
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 moreAuto Trait Implementations§
impl Freeze for QuantityValue
impl RefUnwindSafe for QuantityValue
impl Send for QuantityValue
impl Sync for QuantityValue
impl Unpin for QuantityValue
impl UnsafeUnpin for QuantityValue
impl UnwindSafe for QuantityValue
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