Struct google_api_proto::grafeas::v1beta1::vulnerability::Details
source · pub struct Details {
pub type: String,
pub severity: i32,
pub cvss_score: f32,
pub package_issue: Vec<PackageIssue>,
pub short_description: String,
pub long_description: String,
pub related_urls: Vec<RelatedUrl>,
pub effective_severity: i32,
}
Expand description
Details of a vulnerability Occurrence.
Fields§
§type: String
The type of package; whether native or non native(ruby gems, node.js packages etc)
severity: i32
Output only. The note provider assigned Severity of the 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.
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, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
Implementations§
source§impl Details
impl Details
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.
Trait Implementations§
source§impl Message for Details
impl Message for Details
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 Details
impl PartialEq for Details
impl StructuralPartialEq for Details
Auto Trait Implementations§
impl Freeze for Details
impl RefUnwindSafe for Details
impl Send for Details
impl Sync for Details
impl Unpin for Details
impl UnwindSafe for Details
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