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