#[non_exhaustive]pub struct TimeSeriesData {
    pub label_values: Vec<LabelValue>,
    pub point_data: Vec<PointData>,
}Expand description
Represents the values of a time series associated with a TimeSeriesDescriptor.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional 
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.label_values: Vec<LabelValue>The values of the labels in the time series identifier, given in the same
order as the label_descriptors field of the TimeSeriesDescriptor
associated with this object. Each value must have a value of the type
given in the corresponding entry of label_descriptors.
point_data: Vec<PointData>The points in the time series.
Implementations§
Source§impl TimeSeriesData
 
impl TimeSeriesData
Sourcepub fn set_label_values<T, V>(self, v: T) -> Self
 
pub fn set_label_values<T, V>(self, v: T) -> Self
Sets the value of label_values.
Sourcepub fn set_point_data<T, V>(self, v: T) -> Self
 
pub fn set_point_data<T, V>(self, v: T) -> Self
Sets the value of point_data.
Trait Implementations§
Source§impl Clone for TimeSeriesData
 
impl Clone for TimeSeriesData
Source§fn clone(&self) -> TimeSeriesData
 
fn clone(&self) -> TimeSeriesData
Returns a copy 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 TimeSeriesData
 
impl Debug for TimeSeriesData
Source§impl Default for TimeSeriesData
 
impl Default for TimeSeriesData
Source§fn default() -> TimeSeriesData
 
fn default() -> TimeSeriesData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeSeriesDatawhere
    TimeSeriesData: Default,
 
impl<'de> Deserialize<'de> for TimeSeriesDatawhere
    TimeSeriesData: Default,
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 Message for TimeSeriesData
 
impl Message for TimeSeriesData
Source§impl PartialEq for TimeSeriesData
 
impl PartialEq for TimeSeriesData
Source§impl Serialize for TimeSeriesData
 
impl Serialize for TimeSeriesData
impl StructuralPartialEq for TimeSeriesData
Auto Trait Implementations§
impl Freeze for TimeSeriesData
impl RefUnwindSafe for TimeSeriesData
impl Send for TimeSeriesData
impl Sync for TimeSeriesData
impl Unpin for TimeSeriesData
impl UnwindSafe for TimeSeriesData
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