pub struct ProbeFinding {
pub id: String,
pub outcome: IntegrityProbeOutcome,
pub weight: f64,
pub evidence: String,
pub mitigation_hint: String,
}Expand description
Captured result of a single integrity probe evaluation.
Fields§
§id: StringProbe identifier (snake_case label).
outcome: IntegrityProbeOutcomeResolved outcome.
weight: f64Recorded weight at evaluation time.
evidence: StringFree-form evidence returned by the JavaScript evaluation
(e.g. "function webdriver() {}" for a patched webdriver
accessor).
mitigation_hint: StringPer-probe mitigation hint copied from the catalogue. Empty when the catalogue entry has no hint.
Implementations§
Source§impl ProbeFinding
impl ProbeFinding
Sourcepub const fn is_trap(&self) -> bool
pub const fn is_trap(&self) -> bool
true when the probe fired with a IntegrityProbeOutcome::TrapSuspected
or IntegrityProbeOutcome::TrapConfirmed outcome.
Sourcepub const fn is_confirmed(&self) -> bool
pub const fn is_confirmed(&self) -> bool
true when the probe reported a confirmed trap.
Sourcepub fn contribution(&self) -> f64
pub fn contribution(&self) -> f64
Numeric contribution of this finding to the aggregate risk
score (weight × severity). Returns 0.0 for skipped findings.
Trait Implementations§
Source§impl Clone for ProbeFinding
impl Clone for ProbeFinding
Source§fn clone(&self) -> ProbeFinding
fn clone(&self) -> ProbeFinding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProbeFinding
impl Debug for ProbeFinding
Source§impl<'de> Deserialize<'de> for ProbeFinding
impl<'de> Deserialize<'de> for ProbeFinding
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
Source§impl PartialEq for ProbeFinding
impl PartialEq for ProbeFinding
Source§impl Serialize for ProbeFinding
impl Serialize for ProbeFinding
impl StructuralPartialEq for ProbeFinding
Auto Trait Implementations§
impl Freeze for ProbeFinding
impl RefUnwindSafe for ProbeFinding
impl Send for ProbeFinding
impl Sync for ProbeFinding
impl Unpin for ProbeFinding
impl UnsafeUnpin for ProbeFinding
impl UnwindSafe for ProbeFinding
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