pub struct VulnerabilityNote {
pub cvss_score: Option<f32>,
pub cvss_v2: Option<CVSS>,
pub cvss_v3: Option<CVSSv3>,
pub cvss_version: Option<String>,
pub details: Option<Vec<Detail>>,
pub severity: Option<String>,
pub source_update_time: Option<DateTime<Utc>>,
pub windows_details: Option<Vec<WindowsDetail>>,
}
Expand description
A security vulnerability that can be found in resources.
This type is not used in any activity, and only used as part of another schema.
Fields§
§cvss_score: Option<f32>
The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity.
cvss_v2: Option<CVSS>
The full description of the v2 CVSS for this vulnerability.
cvss_v3: Option<CVSSv3>
The full description of the CVSSv3 for this vulnerability.
cvss_version: Option<String>
CVSS version used to populate cvss_score and severity.
details: Option<Vec<Detail>>
Details of all known distros and packages affected by this vulnerability.
severity: Option<String>
The note provider assigned severity of this vulnerability.
source_update_time: Option<DateTime<Utc>>
The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
windows_details: Option<Vec<WindowsDetail>>
Windows details get their own format because the information format and model don’t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
Trait Implementations§
Source§impl Clone for VulnerabilityNote
impl Clone for VulnerabilityNote
Source§fn clone(&self) -> VulnerabilityNote
fn clone(&self) -> VulnerabilityNote
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VulnerabilityNote
impl Debug for VulnerabilityNote
Source§impl Default for VulnerabilityNote
impl Default for VulnerabilityNote
Source§fn default() -> VulnerabilityNote
fn default() -> VulnerabilityNote
Source§impl<'de> Deserialize<'de> for VulnerabilityNote
impl<'de> Deserialize<'de> for VulnerabilityNote
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>,
Source§impl Serialize for VulnerabilityNote
impl Serialize for VulnerabilityNote
impl Part for VulnerabilityNote
Auto Trait Implementations§
impl Freeze for VulnerabilityNote
impl RefUnwindSafe for VulnerabilityNote
impl Send for VulnerabilityNote
impl Sync for VulnerabilityNote
impl Unpin for VulnerabilityNote
impl UnwindSafe for VulnerabilityNote
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
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>
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>
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