Struct slog_extlog::slog_test::ExpectedStat
source · pub struct ExpectedStat {
pub stat_name: &'static str,
pub tag: Option<&'static str>,
pub value: f64,
pub metric_type: &'static str,
}
Expand description
An expected statistic helper method.
Fields§
§stat_name: &'static str
Stat name E.g. “test_bucket_counter_grouped_freq”
tag: Option<&'static str>
Stat tag E.g. Some(“name=name,error=3,bucket=-5”)
value: f64
Value of this stat E.g. 0f64
metric_type: &'static str
Type of metric for this stat E.g. “bucket_counter”
Auto Trait Implementations§
impl RefUnwindSafe for ExpectedStat
impl Send for ExpectedStat
impl Sync for ExpectedStat
impl Unpin for ExpectedStat
impl UnwindSafe for ExpectedStat
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