#[non_exhaustive]pub struct ValueMetric {
pub type_string: String,
pub value: Value,
pub unit: String,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_string: String§value: Value§unit: StringTrait Implementations§
Source§impl Clone for ValueMetric
impl Clone for ValueMetric
Source§fn clone(&self) -> ValueMetric
fn clone(&self) -> ValueMetric
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 ValueMetric
impl Debug for ValueMetric
Source§impl PartialEq for ValueMetric
impl PartialEq for ValueMetric
Source§fn eq(&self, other: &ValueMetric) -> bool
fn eq(&self, other: &ValueMetric) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValueMetric
Auto Trait Implementations§
impl Freeze for ValueMetric
impl RefUnwindSafe for ValueMetric
impl Send for ValueMetric
impl Sync for ValueMetric
impl Unpin for ValueMetric
impl UnsafeUnpin for ValueMetric
impl UnwindSafe for ValueMetric
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