Struct slog_extlog::stats::StatSnapshotValue[][src]

pub struct StatSnapshotValue {
    pub group_values: Vec<String>,
    pub value: f64,
}

A snapshot of a current (possibly grouped) value for a stat.

Fields

group_values: Vec<String>

A vec of the set of tags that this value belongs to. A group can have several tags and the stat is counted separately for all distinct combinations of tag values. This may be an empty vec is the stat is not grouped.

value: f64

The value of the stat with the above combination of groups (note that this may be bucketed).

Implementations

impl StatSnapshotValue[src]

pub fn new(group_values: Vec<String>, value: f64) -> Self[src]

Create a new snapshot value.

Trait Implementations

impl Debug for StatSnapshotValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.