pub struct DatapointDouble {
pub timestamp: i64,
pub value: Option<f64>,
pub status: Option<StatusCode>,
}Expand description
A datapoint with double precision floating point value.
Fields§
§timestamp: i64Timestamp in milliseconds since epoch.
value: Option<f64>Datapoint value.
status: Option<StatusCode>Datapoint status code.
Trait Implementations§
Source§impl Clone for DatapointDouble
impl Clone for DatapointDouble
Source§fn clone(&self) -> DatapointDouble
fn clone(&self) -> DatapointDouble
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 DatapointDouble
impl Debug for DatapointDouble
Source§impl<'de> Deserialize<'de> for DatapointDouble
impl<'de> Deserialize<'de> for DatapointDouble
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 From<DatapointDouble> for NumericDatapoint
impl From<DatapointDouble> for NumericDatapoint
Source§fn from(dp: DatapointDouble) -> NumericDatapoint
fn from(dp: DatapointDouble) -> NumericDatapoint
Converts to this type from the input type.
Source§impl From<NumericDatapoint> for DatapointDouble
impl From<NumericDatapoint> for DatapointDouble
Source§fn from(dp: NumericDatapoint) -> DatapointDouble
fn from(dp: NumericDatapoint) -> DatapointDouble
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DatapointDouble
impl RefUnwindSafe for DatapointDouble
impl Send for DatapointDouble
impl Sync for DatapointDouble
impl Unpin for DatapointDouble
impl UnwindSafe for DatapointDouble
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