pub struct ScalarMetric {
pub metric_id: Option<String>,
pub value: f64,
}
Fields§
§metric_id: Option<String>
§value: f64
Implementations§
Source§impl ScalarMetric
impl ScalarMetric
pub fn new(value: f64) -> ScalarMetric
Trait Implementations§
Source§impl Clone for ScalarMetric
impl Clone for ScalarMetric
Source§fn clone(&self) -> ScalarMetric
fn clone(&self) -> ScalarMetric
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 ScalarMetric
impl Debug for ScalarMetric
Source§impl Default for ScalarMetric
impl Default for ScalarMetric
Source§fn default() -> ScalarMetric
fn default() -> ScalarMetric
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScalarMetric
impl<'de> Deserialize<'de> for ScalarMetric
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 ScalarMetric
impl PartialEq for ScalarMetric
Source§impl Serialize for ScalarMetric
impl Serialize for ScalarMetric
impl StructuralPartialEq for ScalarMetric
Auto Trait Implementations§
impl Freeze for ScalarMetric
impl RefUnwindSafe for ScalarMetric
impl Send for ScalarMetric
impl Sync for ScalarMetric
impl Unpin for ScalarMetric
impl UnwindSafe for ScalarMetric
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