Struct gapi_grpc::grafeas::v1::VulnerabilityOccurrence[][src]

pub struct VulnerabilityOccurrence {
    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,
    pub fix_available: bool,
}

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.

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.

related_urls: Vec<RelatedUrl>

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.

fix_available: bool

Output only. Whether at least one of the affected packages has a fix available.

Implementations

impl VulnerabilityOccurrence[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.

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

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

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

Sets effective_severity to the provided enum value.

Trait Implementations

impl Clone for VulnerabilityOccurrence[src]

impl Debug for VulnerabilityOccurrence[src]

impl Default for VulnerabilityOccurrence[src]

impl Message for VulnerabilityOccurrence[src]

impl PartialEq<VulnerabilityOccurrence> for VulnerabilityOccurrence[src]

impl StructuralPartialEq for VulnerabilityOccurrence[src]

Auto Trait Implementations

impl RefUnwindSafe for VulnerabilityOccurrence

impl Send for VulnerabilityOccurrence

impl Sync for VulnerabilityOccurrence

impl Unpin for VulnerabilityOccurrence

impl UnwindSafe for VulnerabilityOccurrence

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]