pub struct MetricPage {
pub points: Vec<MetricPoint>,
pub end_of_history: bool,
}Expand description
A page of metric history, in any order. The chart sorts and deduplicates by timestamp. A live correction of the same timestamp takes precedence over history.
Fields§
§points: Vec<MetricPoint>Metric observations in this page.
end_of_history: boolWhether this page reaches the beginning of the available history.
Trait Implementations§
Source§impl Clone for MetricPage
impl Clone for MetricPage
Source§fn clone(&self) -> MetricPage
fn clone(&self) -> MetricPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MetricPage
impl Debug for MetricPage
Source§impl Default for MetricPage
impl Default for MetricPage
Source§fn default() -> MetricPage
fn default() -> MetricPage
Returns the “default value” for a type. Read more
Source§impl PartialEq for MetricPage
impl PartialEq for MetricPage
impl StructuralPartialEq for MetricPage
Auto Trait Implementations§
impl Freeze for MetricPage
impl RefUnwindSafe for MetricPage
impl Send for MetricPage
impl Sync for MetricPage
impl Unpin for MetricPage
impl UnsafeUnpin for MetricPage
impl UnwindSafe for MetricPage
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more