pub struct TimeSeriesPoint { /* private fields */ }Expand description
A single time-series point.
Implementations§
Source§impl TimeSeriesPoint
impl TimeSeriesPoint
Sourcepub fn new(
series_id: SeriesId,
metric_name: MetricName,
timestamp: Timestamp,
value: TimeSeriesValue,
) -> Self
pub fn new( series_id: SeriesId, metric_name: MetricName, timestamp: Timestamp, value: TimeSeriesValue, ) -> Self
Creates a time-series point.
Sourcepub const fn metric_name(&self) -> &MetricName
pub const fn metric_name(&self) -> &MetricName
Returns the metric name.
Sourcepub const fn value(&self) -> TimeSeriesValue
pub const fn value(&self) -> TimeSeriesValue
Returns the 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 PartialEq for TimeSeriesPoint
impl PartialEq for TimeSeriesPoint
impl StructuralPartialEq for TimeSeriesPoint
Auto Trait Implementations§
impl Freeze for TimeSeriesPoint
impl RefUnwindSafe for TimeSeriesPoint
impl Send for TimeSeriesPoint
impl Sync for TimeSeriesPoint
impl Unpin for TimeSeriesPoint
impl UnsafeUnpin 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