#[non_exhaustive]pub struct VulnerabilityOccurrencesSummary {
pub counts: Vec<FixableTotalByDigest>,
/* private fields */
}Expand description
A summary of how many vulnerability occurrences there are per resource and severity type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.counts: Vec<FixableTotalByDigest>A listing by resource of the number of fixable and total vulnerabilities.
Implementations§
Source§impl VulnerabilityOccurrencesSummary
impl VulnerabilityOccurrencesSummary
Sourcepub fn set_counts<T, V>(self, v: T) -> Self
pub fn set_counts<T, V>(self, v: T) -> Self
Sets the value of counts.
§Example
ⓘ
use google_cloud_containeranalysis_v1::model::vulnerability_occurrences_summary::FixableTotalByDigest;
let x = VulnerabilityOccurrencesSummary::new()
.set_counts([
FixableTotalByDigest::default()/* use setters */,
FixableTotalByDigest::default()/* use (different) setters */,
]);Trait Implementations§
impl StructuralPartialEq for VulnerabilityOccurrencesSummary
Auto Trait Implementations§
impl Freeze for VulnerabilityOccurrencesSummary
impl RefUnwindSafe for VulnerabilityOccurrencesSummary
impl Send for VulnerabilityOccurrencesSummary
impl Sync for VulnerabilityOccurrencesSummary
impl Unpin for VulnerabilityOccurrencesSummary
impl UnsafeUnpin for VulnerabilityOccurrencesSummary
impl UnwindSafe for VulnerabilityOccurrencesSummary
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
Mutably borrows from an owned value. Read more