#[non_exhaustive]pub struct Statistics {
pub end: ReferenceTime,
pub process: u8,
pub time_unit: u8,
pub length: i64,
}Expand description
A statistic over a time interval: product definition template 4.8, with one time range.
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.end: ReferenceTimeThe end of the interval, UTC.
process: u8The statistic (code table 4.10): 0 average, 1 accumulation, 2 maximum, 3 minimum, and so on.
time_unit: u8The unit of Statistics::length (code table 4.4).
length: i64The interval’s length in that unit.
Trait Implementations§
Source§impl Clone for Statistics
impl Clone for Statistics
Source§fn clone(&self) -> Statistics
fn clone(&self) -> Statistics
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 moreimpl Copy for Statistics
Source§impl Debug for Statistics
impl Debug for Statistics
Source§impl<'de> Deserialize<'de> for Statistics
impl<'de> Deserialize<'de> for Statistics
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 PartialEq for Statistics
impl PartialEq for Statistics
Source§fn eq(&self, other: &Statistics) -> bool
fn eq(&self, other: &Statistics) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Statistics
impl Serialize for Statistics
impl StructuralPartialEq for Statistics
Auto Trait Implementations§
impl Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnsafeUnpin for Statistics
impl UnwindSafe for Statistics
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