pub struct MetricSample {
pub value: f64,
pub unit: MetricUnit,
}Fields§
§value: f64§unit: MetricUnitTrait Implementations§
Source§impl Clone for MetricSample
impl Clone for MetricSample
Source§fn clone(&self) -> MetricSample
fn clone(&self) -> MetricSample
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 MetricSample
impl Debug for MetricSample
Source§impl<'de> Deserialize<'de> for MetricSample
impl<'de> Deserialize<'de> for MetricSample
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 MetricSample
impl PartialEq for MetricSample
Source§fn eq(&self, other: &MetricSample) -> bool
fn eq(&self, other: &MetricSample) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MetricSample
impl Serialize for MetricSample
impl Copy for MetricSample
impl StructuralPartialEq for MetricSample
Auto Trait Implementations§
impl Freeze for MetricSample
impl RefUnwindSafe for MetricSample
impl Send for MetricSample
impl Sync for MetricSample
impl Unpin for MetricSample
impl UnsafeUnpin for MetricSample
impl UnwindSafe for MetricSample
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