pub struct Finding {
pub fingerprint: String,
pub rule: String,
pub category: Category,
pub severity: Severity,
pub confidence: Confidence,
pub attribution: Option<Attribution>,
pub reason: String,
pub location: Location,
pub actions: Vec<Action>,
}Expand description
A single piece of deterministic evidence. The atom of every report.
Fields§
§fingerprint: StringStable cross-run id, <rule>:<hex> — survives reordering and minor edits
so it can be referenced in commits and baselines.
rule: StringMachine rule id, e.g. unused-export, unused-dependency, cycle.
category: Category§severity: Severity§confidence: Confidence§attribution: Option<Attribution>§reason: StringHuman-readable explanation — the “why” of the evidence.
location: Location§actions: Vec<Action>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Finding
impl<'de> Deserialize<'de> for Finding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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