pub struct TrivyVulnerability {Show 16 fields
pub vulnerability_id: String,
pub pkg_name: String,
pub installed_version: String,
pub fixed_version: Option<String>,
pub layer: TrivyLayer,
pub severity_source: Option<String>,
pub primary_url: Option<String>,
pub data_source: TrivyDataSource,
pub title: Option<String>,
pub description: Option<String>,
pub severity: String,
pub cwe_ids: Option<Vec<String>>,
pub cvss: Option<TrivyCvss>,
pub references: Option<Vec<String>>,
pub published_date: Option<DateTime<Utc>>,
pub last_modified_date: Option<DateTime<Utc>>,
}
Fields
vulnerability_id: String
pkg_name: String
installed_version: String
fixed_version: Option<String>
layer: TrivyLayer
severity_source: Option<String>
primary_url: Option<String>
data_source: TrivyDataSource
title: Option<String>
description: Option<String>
severity: String
cwe_ids: Option<Vec<String>>
cvss: Option<TrivyCvss>
references: Option<Vec<String>>
published_date: Option<DateTime<Utc>>
last_modified_date: Option<DateTime<Utc>>
Implementations
Trait Implementations
sourceimpl CvssProvider for TrivyVulnerability
impl CvssProvider for TrivyVulnerability
sourcefn cvss_v3_1(&self) -> Option<BaseMetric>
fn cvss_v3_1(&self) -> Option<BaseMetric>
Get the CVSS v3.1 score for this vulnerability
sourceimpl Debug for TrivyVulnerability
impl Debug for TrivyVulnerability
sourceimpl<'de> Deserialize<'de> for TrivyVulnerability
impl<'de> Deserialize<'de> for TrivyVulnerability
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 TrivyVulnerability
impl Serialize for TrivyVulnerability
Auto Trait Implementations
impl RefUnwindSafe for TrivyVulnerability
impl Send for TrivyVulnerability
impl Sync for TrivyVulnerability
impl Unpin for TrivyVulnerability
impl UnwindSafe for TrivyVulnerability
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> 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