pub struct Finding {
pub severity: Severity,
pub check_id: Option<String>,
pub code: Option<String>,
pub message: Option<String>,
pub location: Option<Location>,
pub fingerprint: Option<String>,
pub data: Option<Value>,
pub confidence: Option<f64>,
pub provenance: Option<Provenance>,
pub context: Option<FindingContext>,
}Fields§
§severity: Severity§check_id: Option<String>§code: Option<String>§message: Option<String>§location: Option<Location>§fingerprint: Option<String>A stable key (ideally) for deduplication across runs.
data: Option<Value>Optional, tool-specific payload.
confidence: Option<f64>Confidence score (0.0 to 1.0) indicating certainty of the finding. Higher values indicate more certainty.
provenance: Option<Provenance>Provenance chain describing how the finding was derived.
context: Option<FindingContext>Context metadata for the finding.
Implementations§
Source§impl Finding
impl Finding
Sourcepub fn is_high_confidence(&self) -> bool
pub fn is_high_confidence(&self) -> bool
Returns true if this finding has high confidence (>= 0.9).
Sourcepub fn has_full_consensus(&self) -> bool
pub fn has_full_consensus(&self) -> bool
Returns true if this finding has full consensus across all workspace crates.
Sourcepub fn has_tool_agreement(&self) -> bool
pub fn has_tool_agreement(&self) -> bool
Returns true if multiple tools agree on this finding.
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
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