Struct gapi_grpc::grafeas::v1beta1::vulnerability::Vulnerability[][src]

pub struct Vulnerability {
    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>,
}

Vulnerability provides metadata about a security vulnerability in a Note.

Fields

cvss_score: f32

The CVSS score for this vulnerability.

severity: i32

Note provider assigned impact of the vulnerability.

details: Vec<Detail>

All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.

cvss_v3: Option<CvsSv3>

The full description of the CVSSv3.

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.

Implementations

impl Vulnerability[src]

pub fn severity(&self) -> Severity[src]

Returns the enum value of severity, or the default if the field is set to an invalid enum value.

pub fn set_severity(&mut self, value: Severity)[src]

Sets severity to the provided enum value.

Trait Implementations

impl Clone for Vulnerability[src]

impl Debug for Vulnerability[src]

impl Default for Vulnerability[src]

impl Message for Vulnerability[src]

impl PartialEq<Vulnerability> for Vulnerability[src]

impl StructuralPartialEq for Vulnerability[src]

Auto Trait Implementations

impl RefUnwindSafe for Vulnerability

impl Send for Vulnerability

impl Sync for Vulnerability

impl Unpin for Vulnerability

impl UnwindSafe for Vulnerability

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]