pub struct VulnerabilityChanges {
pub introduced: Vec<VulnerabilityDetail>,
pub resolved: Vec<VulnerabilityDetail>,
pub persistent: Vec<VulnerabilityDetail>,
}Expand description
Vulnerability change information
Fields§
§introduced: Vec<VulnerabilityDetail>Newly introduced vulnerabilities
resolved: Vec<VulnerabilityDetail>Resolved vulnerabilities
persistent: Vec<VulnerabilityDetail>Persistent vulnerabilities (present in both)
Implementations§
Source§impl VulnerabilityChanges
impl VulnerabilityChanges
Sourcepub fn introduced_by_severity(&self) -> HashMap<String, usize>
pub fn introduced_by_severity(&self) -> HashMap<String, usize>
Count vulnerabilities by severity
Sourcepub fn critical_and_high_introduced(&self) -> Vec<&VulnerabilityDetail>
pub fn critical_and_high_introduced(&self) -> Vec<&VulnerabilityDetail>
Get critical and high severity introduced vulnerabilities
Trait Implementations§
Source§impl Clone for VulnerabilityChanges
impl Clone for VulnerabilityChanges
Source§fn clone(&self) -> VulnerabilityChanges
fn clone(&self) -> VulnerabilityChanges
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 VulnerabilityChanges
impl Debug for VulnerabilityChanges
Source§impl Default for VulnerabilityChanges
impl Default for VulnerabilityChanges
Source§fn default() -> VulnerabilityChanges
fn default() -> VulnerabilityChanges
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VulnerabilityChanges
impl<'de> Deserialize<'de> for VulnerabilityChanges
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
Auto Trait Implementations§
impl Freeze for VulnerabilityChanges
impl RefUnwindSafe for VulnerabilityChanges
impl Send for VulnerabilityChanges
impl Sync for VulnerabilityChanges
impl Unpin for VulnerabilityChanges
impl UnsafeUnpin for VulnerabilityChanges
impl UnwindSafe for VulnerabilityChanges
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