Expand description
DecimalWithUnits : The decimal value and unit.
Fields
value: Option<f32>
The decimal value.
units: Option<String>
The unit of the decimal value.
Implementations
sourceimpl DecimalWithUnits
impl DecimalWithUnits
sourcepub fn new() -> DecimalWithUnits
pub fn new() -> DecimalWithUnits
The decimal value and unit.
Trait Implementations
sourceimpl Clone for DecimalWithUnits
impl Clone for DecimalWithUnits
sourcefn clone(&self) -> DecimalWithUnits
fn clone(&self) -> DecimalWithUnits
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DecimalWithUnits
impl Debug for DecimalWithUnits
sourceimpl Default for DecimalWithUnits
impl Default for DecimalWithUnits
sourcefn default() -> DecimalWithUnits
fn default() -> DecimalWithUnits
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for DecimalWithUnits
impl<'de> Deserialize<'de> for DecimalWithUnits
sourcefn 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
sourceimpl PartialEq<DecimalWithUnits> for DecimalWithUnits
impl PartialEq<DecimalWithUnits> for DecimalWithUnits
sourcefn eq(&self, other: &DecimalWithUnits) -> bool
fn eq(&self, other: &DecimalWithUnits) -> bool
sourceimpl Serialize for DecimalWithUnits
impl Serialize for DecimalWithUnits
impl StructuralPartialEq for DecimalWithUnits
Auto Trait Implementations
impl RefUnwindSafe for DecimalWithUnits
impl Send for DecimalWithUnits
impl Sync for DecimalWithUnits
impl Unpin for DecimalWithUnits
impl UnwindSafe for DecimalWithUnits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more