pub struct VulnerabilityOccurrence {Show 14 fields
pub cvss_score: Option<f32>,
pub cvss_v2: Option<CVSS>,
pub cvss_version: Option<String>,
pub cvssv3: Option<CVSS>,
pub effective_severity: Option<String>,
pub extra_details: Option<String>,
pub fix_available: Option<bool>,
pub long_description: Option<String>,
pub package_issue: Option<Vec<PackageIssue>>,
pub related_urls: Option<Vec<RelatedUrl>>,
pub severity: Option<String>,
pub short_description: Option<String>,
pub type_: Option<String>,
pub vex_assessment: Option<VexAssessment>,
}
Expand description
An occurrence of a severity vulnerability on a resource.
This type is not used in any activity, and only used as part of another schema.
Fields§
§cvss_score: Option<f32>
Output only. 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 cvss v2 score for the vulnerability.
cvss_version: Option<String>
Output only. CVSS version used to populate cvss_score and severity.
cvssv3: Option<CVSS>
The cvss v3 score for the vulnerability.
effective_severity: Option<String>
The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
extra_details: Option<String>
Occurrence-specific extra details about the vulnerability.
fix_available: Option<bool>
Output only. Whether at least one of the affected packages has a fix available.
long_description: Option<String>
Output only. A detailed description of this vulnerability.
package_issue: Option<Vec<PackageIssue>>
Required. The set of affected locations and their fixes (if available) within the associated resource.
Output only. URLs related to this vulnerability.
severity: Option<String>
Output only. The note provider assigned severity of this vulnerability.
short_description: Option<String>
Output only. A one sentence description of this vulnerability.
type_: Option<String>
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
vex_assessment: Option<VexAssessment>
no description provided
Trait Implementations§
Source§impl Clone for VulnerabilityOccurrence
impl Clone for VulnerabilityOccurrence
Source§fn clone(&self) -> VulnerabilityOccurrence
fn clone(&self) -> VulnerabilityOccurrence
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VulnerabilityOccurrence
impl Debug for VulnerabilityOccurrence
Source§impl Default for VulnerabilityOccurrence
impl Default for VulnerabilityOccurrence
Source§fn default() -> VulnerabilityOccurrence
fn default() -> VulnerabilityOccurrence
Source§impl<'de> Deserialize<'de> for VulnerabilityOccurrence
impl<'de> Deserialize<'de> for VulnerabilityOccurrence
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 VulnerabilityOccurrence
impl Serialize for VulnerabilityOccurrence
impl Part for VulnerabilityOccurrence
Auto Trait Implementations§
impl Freeze for VulnerabilityOccurrence
impl RefUnwindSafe for VulnerabilityOccurrence
impl Send for VulnerabilityOccurrence
impl Sync for VulnerabilityOccurrence
impl Unpin for VulnerabilityOccurrence
impl UnwindSafe for VulnerabilityOccurrence
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