Struct google_api_proto::grafeas::v1::VulnerabilityNote
source · pub struct VulnerabilityNote {
pub cvss_score: f32,
pub severity: i32,
pub details: Vec<Detail>,
pub cvss_v3: Option<CvsSv3>,
pub windows_details: Vec<WindowsDetail>,
pub source_update_time: Option<Timestamp>,
pub cvss_version: i32,
pub cvss_v2: Option<Cvss>,
}
Expand description
A security vulnerability that can be found in resources.
Fields§
§cvss_score: 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.
severity: i32
The note provider assigned severity of this vulnerability.
details: Vec<Detail>
Details of all known distros and packages affected by this vulnerability.
cvss_v3: Option<CvsSv3>
The full description of the CVSSv3 for this vulnerability.
windows_details: 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.
source_update_time: Option<Timestamp>
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.
cvss_version: i32
CVSS version used to populate cvss_score and severity.
cvss_v2: Option<Cvss>
The full description of the v2 CVSS for this vulnerability.
Implementations§
source§impl VulnerabilityNote
impl VulnerabilityNote
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 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 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§impl Message for VulnerabilityNote
impl Message for VulnerabilityNote
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 VulnerabilityNote
impl PartialEq for VulnerabilityNote
source§fn eq(&self, other: &VulnerabilityNote) -> bool
fn eq(&self, other: &VulnerabilityNote) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq 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
§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