pub struct TimeSeriesPoint {
pub timestamp: DateTime<Utc>,
pub value: f64,
}Expand description
Time-series data point for metrics.
Fields§
§timestamp: DateTime<Utc>Timestamp of the data point.
value: f64Metric value.
Trait Implementations§
Source§impl Clone for TimeSeriesPoint
impl Clone for TimeSeriesPoint
Source§fn clone(&self) -> TimeSeriesPoint
fn clone(&self) -> TimeSeriesPoint
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 TimeSeriesPoint
impl Debug for TimeSeriesPoint
Source§impl<'de> Deserialize<'de> for TimeSeriesPoint
impl<'de> Deserialize<'de> for TimeSeriesPoint
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
Auto Trait Implementations§
impl Freeze for TimeSeriesPoint
impl RefUnwindSafe for TimeSeriesPoint
impl Send for TimeSeriesPoint
impl Sync for TimeSeriesPoint
impl Unpin for TimeSeriesPoint
impl UnwindSafe for TimeSeriesPoint
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