pub struct RiskIndicators {
pub vuln_count: usize,
pub highest_severity: Option<String>,
pub direct_dependent_count: usize,
pub transitive_dependent_count: usize,
pub license_risk: LicenseRisk,
pub is_direct_dep: bool,
pub depth: usize,
pub risk_score: u8,
pub risk_level: RiskLevel,
}Expand description
Risk indicators for a component
Fields§
§vuln_count: usizeVulnerability count
highest_severity: Option<String>Highest vulnerability severity
direct_dependent_count: usizeNumber of direct dependents
transitive_dependent_count: usizeNumber of transitive dependents (blast radius)
license_risk: LicenseRiskLicense risk (unknown, copyleft, etc.)
is_direct_dep: boolIs this a direct dependency (depth 1)
depth: usizeDependency depth from root
risk_score: u8Overall risk score (0-100)
risk_level: RiskLevelOverall risk level
Implementations§
Source§impl RiskIndicators
impl RiskIndicators
Sourcepub fn calculate_risk_score(&mut self)
pub fn calculate_risk_score(&mut self)
Calculate risk score based on various factors
Trait Implementations§
Source§impl Clone for RiskIndicators
impl Clone for RiskIndicators
Source§fn clone(&self) -> RiskIndicators
fn clone(&self) -> RiskIndicators
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 moreSource§impl Debug for RiskIndicators
impl Debug for RiskIndicators
Source§impl Default for RiskIndicators
impl Default for RiskIndicators
Source§fn default() -> RiskIndicators
fn default() -> RiskIndicators
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RiskIndicators
impl RefUnwindSafe for RiskIndicators
impl Send for RiskIndicators
impl Sync for RiskIndicators
impl Unpin for RiskIndicators
impl UnsafeUnpin for RiskIndicators
impl UnwindSafe for RiskIndicators
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