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