Struct VulnerabilityOccurrence

Source
pub struct VulnerabilityOccurrence {
Show 14 fields pub cvss_score: Option<f32>, pub cvss_v2: Option<CVSS>, pub cvss_version: Option<String>, pub cvssv3: Option<CVSS>, pub effective_severity: Option<String>, pub extra_details: Option<String>, pub fix_available: Option<bool>, pub long_description: Option<String>, pub package_issue: Option<Vec<PackageIssue>>, pub related_urls: Option<Vec<RelatedUrl>>, pub severity: Option<String>, pub short_description: Option<String>, pub type_: Option<String>, pub vex_assessment: Option<VexAssessment>,
}
Expand description

An occurrence of a severity vulnerability on a resource.

This type is not used in any activity, and only used as part of another schema.

Fields§

§cvss_score: Option<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.

§cvss_v2: Option<CVSS>

The cvss v2 score for the vulnerability.

§cvss_version: Option<String>

Output only. CVSS version used to populate cvss_score and severity.

§cvssv3: Option<CVSS>

The cvss v3 score for the vulnerability.

§effective_severity: Option<String>

The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.

§extra_details: Option<String>

Occurrence-specific extra details about the vulnerability.

§fix_available: Option<bool>

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

§long_description: Option<String>

Output only. A detailed description of this vulnerability.

§package_issue: Option<Vec<PackageIssue>>

Required. The set of affected locations and their fixes (if available) within the associated resource.

§related_urls: Option<Vec<RelatedUrl>>

Output only. URLs related to this vulnerability.

§severity: Option<String>

Output only. The note provider assigned severity of this vulnerability.

§short_description: Option<String>

Output only. A one sentence description of this vulnerability.

§type_: Option<String>

The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).

§vex_assessment: Option<VexAssessment>

no description provided

Trait Implementations§

Source§

impl Clone for VulnerabilityOccurrence

Source§

fn clone(&self) -> VulnerabilityOccurrence

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VulnerabilityOccurrence

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for VulnerabilityOccurrence

Source§

fn default() -> VulnerabilityOccurrence

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for VulnerabilityOccurrence

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for VulnerabilityOccurrence

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Part for VulnerabilityOccurrence

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,