pub struct Finding {
pub id: String,
pub title: String,
pub category: Category,
pub severity: Severity,
pub mitre: Vec<Mitre>,
pub affected: Vec<String>,
pub detail: String,
pub impact: Option<String>,
pub remediation: String,
pub weight_bonus: u32,
}Fields§
§id: String§title: String§category: Category§severity: Severity§mitre: Vec<Mitre>§affected: Vec<String>DNs / SIDs the finding points at.
detail: StringWhat was observed (evidence-level: raw stat, matched attribute, etc.).
impact: Option<String>Attack-chain narrative: if an attacker acted on this finding, what would happen?
1-2 sentences. Optional so downstream Finding producers can leave it blank; UIs
render it under a distinct “Impact” heading and reports omit the section if None.
remediation: String§weight_bonus: u32Extra weight beyond the severity base (e.g. per-object scaling).
Implementations§
Source§impl Finding
impl Finding
Sourcepub fn with_impact(self, impact: impl Into<String>) -> Self
pub fn with_impact(self, impact: impl Into<String>) -> Self
Chainable setter for Self::impact — used by rule constructors that want to
annotate the attack-chain narrative alongside the raw evidence.
Trait Implementations§
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