pub struct Finding {
pub label: String,
pub value: String,
pub detail: Option<String>,
pub source: Option<String>,
pub line_number: Option<usize>,
}Expand description
A single detector’s output.
Matches the browser tool’s Finding type field-for-field so JSON
output can be diffed against the browser tool’s output byte-for-byte
on the same input.
Fields§
§label: String§value: String§detail: Option<String>§source: Option<String>§line_number: Option<usize>1-based line number of source within the analyzed log.
Populated by analyze(); None when the evidence could not be
located (or when a Finding is constructed by hand, e.g. from
an archived JSON envelope). Additive — existing consumers that
don’t know about it are unaffected.
Trait Implementations§
impl Eq for Finding
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