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