#[non_exhaustive]pub struct Finding {
pub code: FindingCode,
pub severity: Severity,
pub column: Option<String>,
pub evidence: BTreeMap<String, EvidenceValue>,
pub summary: String,
}Expand description
Something in the report that deserves attention.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.code: FindingCodeWhich rule produced it.
severity: SeverityHow much attention it asks for. Always code.severity().
column: Option<String>The column it concerns, absent for a finding about the whole report.
evidence: BTreeMap<String, EvidenceValue>The metric values and thresholds that caused it, by name. Never a raw cell value.
summary: StringA fixed sentence naming what was observed.
Trait Implementations§
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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