pub struct DataPoint {
pub timestamp: i64,
pub value: f64,
}Expand description
Single data point
- timestamp - Data point timestamp
- value - Data point value
Fields§
§timestamp: i64§value: f64Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataPoint
impl<'de> Deserialize<'de> for DataPoint
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 FromIterator<DataPoint> for TimeSeries
impl FromIterator<DataPoint> for TimeSeries
Auto Trait Implementations§
impl Freeze for DataPoint
impl RefUnwindSafe for DataPoint
impl Send for DataPoint
impl Sync for DataPoint
impl Unpin for DataPoint
impl UnwindSafe for DataPoint
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