#[non_exhaustive]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 (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Count(usize)
A count of rows or values.
Percentage(f64)
A 0..=100 percentage or score, or a change in one, in points.
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