pub struct PackageIssue {
pub affected_cpe_uri: Option<String>,
pub affected_package: Option<String>,
pub affected_version: Option<Version>,
pub effective_severity: Option<String>,
pub file_location: Option<Vec<GrafeasV1FileLocation>>,
pub fix_available: Option<bool>,
pub fixed_cpe_uri: Option<String>,
pub fixed_package: Option<String>,
pub fixed_version: Option<Version>,
pub package_type: Option<String>,
}
Expand description
A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
This type is not used in any activity, and only used as part of another schema.
Fields§
§affected_cpe_uri: Option<String>
Required. The CPE URI this vulnerability was found in.
affected_package: Option<String>
Required. The package this vulnerability was found in.
affected_version: Option<Version>
Required. The version of the package that is installed on the resource affected by this vulnerability.
effective_severity: Option<String>
Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available.
file_location: Option<Vec<GrafeasV1FileLocation>>
The location at which this package was found.
fix_available: Option<bool>
Output only. Whether a fix is available for this package.
fixed_cpe_uri: Option<String>
The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
fixed_package: Option<String>
The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
fixed_version: Option<Version>
Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
package_type: Option<String>
The type of package (e.g. OS, MAVEN, GO).
Trait Implementations§
Source§impl Clone for PackageIssue
impl Clone for PackageIssue
Source§fn clone(&self) -> PackageIssue
fn clone(&self) -> PackageIssue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PackageIssue
impl Debug for PackageIssue
Source§impl Default for PackageIssue
impl Default for PackageIssue
Source§fn default() -> PackageIssue
fn default() -> PackageIssue
Source§impl<'de> Deserialize<'de> for PackageIssue
impl<'de> Deserialize<'de> for PackageIssue
Source§fn 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>,
Source§impl Serialize for PackageIssue
impl Serialize for PackageIssue
impl Part for PackageIssue
Auto Trait Implementations§
impl Freeze for PackageIssue
impl RefUnwindSafe for PackageIssue
impl Send for PackageIssue
impl Sync for PackageIssue
impl Unpin for PackageIssue
impl UnwindSafe for PackageIssue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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