pub enum MetricValue {
Count(usize),
Percentage(f64),
}Expand description
A number a check read, or a threshold it compared against.
Percentages follow the report’s 2dp serialization convention; counts are whole numbers and are not widened into rounded floats.
Variants§
Trait Implementations§
Source§impl Clone for MetricValue
impl Clone for MetricValue
impl Copy for MetricValue
Source§impl Debug for MetricValue
impl Debug for MetricValue
Source§impl Display for MetricValue
impl Display for MetricValue
Source§impl PartialEq for MetricValue
impl PartialEq for MetricValue
Source§impl Serialize for MetricValue
impl Serialize for MetricValue
impl StructuralPartialEq for MetricValue
Auto Trait Implementations§
impl Freeze for MetricValue
impl RefUnwindSafe for MetricValue
impl Send for MetricValue
impl Sync for MetricValue
impl Unpin for MetricValue
impl UnsafeUnpin for MetricValue
impl UnwindSafe for MetricValue
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