pub struct RiskReport {
pub findings: Vec<Finding>,
pub score: f32,
}Expand description
Aggregated output of an analysis run.
Fields§
§findings: Vec<Finding>All findings, in detector-defined order.
score: f32Overall risk score on a 0.0–10.0 scale.
Implementations§
Source§impl RiskReport
impl RiskReport
Sourcepub fn findings_for(&self, category: RiskCategory) -> Vec<&Finding>
pub fn findings_for(&self, category: RiskCategory) -> Vec<&Finding>
Return findings filtered to a single category.
Sourcepub fn max_severity(&self) -> Option<Severity>
pub fn max_severity(&self) -> Option<Severity>
Highest severity observed in the report, if any findings exist.
Trait Implementations§
Source§impl Clone for RiskReport
impl Clone for RiskReport
Source§impl Debug for RiskReport
impl Debug for RiskReport
Source§impl<'de> Deserialize<'de> for RiskReport
impl<'de> Deserialize<'de> for RiskReport
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 RiskReport
impl PartialEq for RiskReport
Source§impl Serialize for RiskReport
impl Serialize for RiskReport
impl StructuralPartialEq for RiskReport
Auto Trait Implementations§
impl Forget for RiskReport
impl Freeze for RiskReport
impl Move for RiskReport
impl RefUnwindSafe for RiskReport
impl Send for RiskReport
impl Sync for RiskReport
impl Unpin for RiskReport
impl UnsafeUnpin for RiskReport
impl UnwindSafe for RiskReport
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