pub struct AuditResult {
pub name: String,
pub version: String,
pub scope: AuditScope,
pub findings: Vec<Finding>,
}Expand description
Result of an audit run.
Fields§
§name: StringCrate name.
version: StringCrate version.
scope: AuditScopeScope that produced this result.
findings: Vec<Finding>All findings discovered.
Implementations§
Source§impl AuditResult
impl AuditResult
Sourcepub fn count_at_or_above(&self, threshold: Severity) -> usize
pub fn count_at_or_above(&self, threshold: Severity) -> usize
Number of findings at the given severity or higher.
Sourcepub fn into_report(self) -> Report
pub fn into_report(self) -> Report
Convert this result into a dev-report::Report.
Trait Implementations§
Source§impl Clone for AuditResult
impl Clone for AuditResult
Source§fn clone(&self) -> AuditResult
fn clone(&self) -> AuditResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuditResult
impl RefUnwindSafe for AuditResult
impl Send for AuditResult
impl Sync for AuditResult
impl Unpin for AuditResult
impl UnsafeUnpin for AuditResult
impl UnwindSafe for AuditResult
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