Struct google_api_proto::grafeas::v1::VulnerabilityOccurrence
source · pub struct VulnerabilityOccurrence {Show 14 fields
pub type: String,
pub severity: i32,
pub cvss_score: f32,
pub cvssv3: Option<Cvss>,
pub package_issue: Vec<PackageIssue>,
pub short_description: String,
pub long_description: String,
pub related_urls: Vec<RelatedUrl>,
pub effective_severity: i32,
pub fix_available: bool,
pub cvss_version: i32,
pub cvss_v2: Option<Cvss>,
pub vex_assessment: Option<VexAssessment>,
pub extra_details: String,
}
Expand description
An occurrence of a severity vulnerability on a resource.
Fields§
§type: String
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
severity: i32
Output only. The note provider assigned severity of this vulnerability.
cvss_score: 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.
cvssv3: Option<Cvss>
The cvss v3 score for the vulnerability.
package_issue: Vec<PackageIssue>
Required. The set of affected locations and their fixes (if available) within the associated resource.
short_description: String
Output only. A one sentence description of this vulnerability.
long_description: String
Output only. A detailed description of this vulnerability.
Output only. URLs related to this vulnerability.
effective_severity: i32
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.
fix_available: bool
Output only. Whether at least one of the affected packages has a fix available.
cvss_version: i32
Output only. CVSS version used to populate cvss_score and severity.
cvss_v2: Option<Cvss>
The cvss v2 score for the vulnerability.
vex_assessment: Option<VexAssessment>
§extra_details: String
Occurrence-specific extra details about the vulnerability.
Implementations§
source§impl VulnerabilityOccurrence
impl VulnerabilityOccurrence
sourcepub fn severity(&self) -> Severity
pub fn severity(&self) -> Severity
Returns the enum value of severity
, or the default if the field is set to an invalid enum value.
sourcepub fn set_severity(&mut self, value: Severity)
pub fn set_severity(&mut self, value: Severity)
Sets severity
to the provided enum value.
sourcepub fn effective_severity(&self) -> Severity
pub fn effective_severity(&self) -> Severity
Returns the enum value of effective_severity
, or the default if the field is set to an invalid enum value.
sourcepub fn set_effective_severity(&mut self, value: Severity)
pub fn set_effective_severity(&mut self, value: Severity)
Sets effective_severity
to the provided enum value.
sourcepub fn cvss_version(&self) -> CvssVersion
pub fn cvss_version(&self) -> CvssVersion
Returns the enum value of cvss_version
, or the default if the field is set to an invalid enum value.
sourcepub fn set_cvss_version(&mut self, value: CvssVersion)
pub fn set_cvss_version(&mut self, value: CvssVersion)
Sets cvss_version
to the provided enum value.
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§impl Message for VulnerabilityOccurrence
impl Message for VulnerabilityOccurrence
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for VulnerabilityOccurrence
impl PartialEq for VulnerabilityOccurrence
source§fn eq(&self, other: &VulnerabilityOccurrence) -> bool
fn eq(&self, other: &VulnerabilityOccurrence) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request