pub struct VulnerabilityOccurrence {
pub cvss_score: Option<f32>,
pub cvssv3: Option<CVSS>,
pub effective_severity: 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>,
}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.
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.
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.
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.).
Trait Implementations
sourceimpl Clone for VulnerabilityOccurrence
impl Clone for VulnerabilityOccurrence
sourcefn clone(&self) -> VulnerabilityOccurrence
fn clone(&self) -> VulnerabilityOccurrence
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for VulnerabilityOccurrence
impl Debug for VulnerabilityOccurrence
sourceimpl Default for VulnerabilityOccurrence
impl Default for VulnerabilityOccurrence
sourcefn default() -> VulnerabilityOccurrence
fn default() -> VulnerabilityOccurrence
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for VulnerabilityOccurrence
impl<'de> Deserialize<'de> for VulnerabilityOccurrence
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for VulnerabilityOccurrence
impl Serialize for VulnerabilityOccurrence
impl Part for VulnerabilityOccurrence
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more