Struct google_api_proto::google::cloud::securitycenter::v2::Cve
source · pub struct Cve {
pub id: String,
pub references: Vec<Reference>,
pub cvssv3: Option<Cvssv3>,
pub upstream_fix_available: bool,
pub impact: i32,
pub exploitation_activity: i32,
pub observed_in_the_wild: bool,
pub zero_day: bool,
pub exploit_release_date: Option<Timestamp>,
}
Expand description
CVE stands for Common Vulnerabilities and Exposures. Information from the CVE record that describes this vulnerability.
Fields§
§id: String
The unique identifier for the vulnerability. e.g. CVE-2021-34527
references: Vec<Reference>
Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
cvssv3: Option<Cvssv3>
Describe Common Vulnerability Scoring System specified at https://www.first.org/cvss/v3.1/specification-document
upstream_fix_available: bool
Whether upstream fix is available for the CVE.
impact: i32
The potential impact of the vulnerability if it was to be exploited.
exploitation_activity: i32
The exploitation activity of the vulnerability in the wild.
observed_in_the_wild: bool
Whether or not the vulnerability has been observed in the wild.
zero_day: bool
Whether or not the vulnerability was zero day when the finding was published.
exploit_release_date: Option<Timestamp>
Date the first publicly available exploit or PoC was released.
Implementations§
source§impl Cve
impl Cve
sourcepub fn impact(&self) -> RiskRating
pub fn impact(&self) -> RiskRating
Returns the enum value of impact
, or the default if the field is set to an invalid enum value.
sourcepub fn set_impact(&mut self, value: RiskRating)
pub fn set_impact(&mut self, value: RiskRating)
Sets impact
to the provided enum value.
sourcepub fn exploitation_activity(&self) -> ExploitationActivity
pub fn exploitation_activity(&self) -> ExploitationActivity
Returns the enum value of exploitation_activity
, or the default if the field is set to an invalid enum value.
sourcepub fn set_exploitation_activity(&mut self, value: ExploitationActivity)
pub fn set_exploitation_activity(&mut self, value: ExploitationActivity)
Sets exploitation_activity
to the provided enum value.
Trait Implementations§
source§impl Message for Cve
impl Message for Cve
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
.impl StructuralPartialEq for Cve
Auto Trait Implementations§
impl Freeze for Cve
impl RefUnwindSafe for Cve
impl Send for Cve
impl Sync for Cve
impl Unpin for Cve
impl UnwindSafe for Cve
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