#[non_exhaustive]pub enum EvidenceValue {
Count(usize),
Percentage(f64),
Text(String),
Flag(bool),
}Expand description
One value a finding read from the report, or a threshold it applied.
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.
Text(String)
A name from the report: a lexical type, a pattern, a reason.
Flag(bool)
A yes/no property of the evidence.
Trait Implementations§
Source§impl Clone for EvidenceValue
impl Clone for EvidenceValue
Source§impl Debug for EvidenceValue
impl Debug for EvidenceValue
Source§impl PartialEq for EvidenceValue
impl PartialEq for EvidenceValue
Source§impl Serialize for EvidenceValue
impl Serialize for EvidenceValue
impl StructuralPartialEq for EvidenceValue
Auto Trait Implementations§
impl Freeze for EvidenceValue
impl RefUnwindSafe for EvidenceValue
impl Send for EvidenceValue
impl Sync for EvidenceValue
impl Unpin for EvidenceValue
impl UnsafeUnpin for EvidenceValue
impl UnwindSafe for EvidenceValue
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