pub struct SecurityReport {
pub total_vulnerabilities: usize,
pub critical_vulnerabilities: Vec<VulnerabilityInfo>,
pub high_vulnerabilities: Vec<VulnerabilityInfo>,
pub medium_vulnerabilities: Vec<VulnerabilityInfo>,
pub low_vulnerabilities: Vec<VulnerabilityInfo>,
pub risk_score: f64,
}Expand description
Security report for dependencies
Fields§
§total_vulnerabilities: usizeTotal number of vulnerabilities
critical_vulnerabilities: Vec<VulnerabilityInfo>Critical vulnerabilities
high_vulnerabilities: Vec<VulnerabilityInfo>High severity vulnerabilities
medium_vulnerabilities: Vec<VulnerabilityInfo>Medium severity vulnerabilities
low_vulnerabilities: Vec<VulnerabilityInfo>Low severity vulnerabilities
risk_score: f64Overall risk score (0-100)
Trait Implementations§
Source§impl Clone for SecurityReport
impl Clone for SecurityReport
Source§fn clone(&self) -> SecurityReport
fn clone(&self) -> SecurityReport
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 moreAuto Trait Implementations§
impl Freeze for SecurityReport
impl RefUnwindSafe for SecurityReport
impl Send for SecurityReport
impl Sync for SecurityReport
impl Unpin for SecurityReport
impl UnwindSafe for SecurityReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more