pub struct Report {
pub insecure_sources: Vec<InsecureSource>,
pub unpatched_gems: Vec<UnpatchedGem>,
pub vulnerable_rubies: Vec<VulnerableRuby>,
pub version_parse_errors: usize,
pub advisory_load_errors: usize,
}Expand description
Aggregated scan report.
Fields§
§insecure_sources: Vec<InsecureSource>§unpatched_gems: Vec<UnpatchedGem>§vulnerable_rubies: Vec<VulnerableRuby>§version_parse_errors: usizeNumber of gem versions that failed to parse.
advisory_load_errors: usizeNumber of advisory YAML files that failed to load.
Implementations§
Source§impl Report
impl Report
Sourcepub fn vulnerable(&self) -> bool
pub fn vulnerable(&self) -> bool
Returns true if any vulnerabilities were found.
Sourcepub fn remediations(&self) -> Vec<Remediation>
pub fn remediations(&self) -> Vec<Remediation>
Group unpatched gems into remediation suggestions.
Groups vulnerabilities by gem name, deduplicates advisories (by ID), and collects the union of all patched_versions across advisories.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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