pub struct Sum<T> {
pub data_points: Vec<DataPoint<T>>,
pub temporality: Temporality,
pub is_monotonic: bool,
}
Expand description
Represents the sum of all measurements of values from an instrument.
Fields§
§data_points: Vec<DataPoint<T>>
Represents individual aggregated measurements with unique attributes.
temporality: Temporality
Describes if the aggregation is reported as the change from the last report time, or the cumulative changes since a fixed start time.
is_monotonic: bool
Whether this aggregation only increases or decreases.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Sum<T>where T: RefUnwindSafe,
impl<T> Send for Sum<T>where T: Send,
impl<T> Sync for Sum<T>where T: Sync,
impl<T> Unpin for Sum<T>where T: Unpin,
impl<T> UnwindSafe for Sum<T>where T: UnwindSafe,
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