#[non_exhaustive]pub struct FixableTotalByDigest {
pub resource_uri: String,
pub severity: Severity,
pub fixable_count: i64,
pub total_count: i64,
/* private fields */
}Expand description
Per resource and severity counts of fixable and total vulnerabilities.
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.resource_uri: StringThe affected resource.
severity: SeverityThe severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities.
fixable_count: i64The number of fixable vulnerabilities associated with this resource.
total_count: i64The total number of vulnerabilities associated with this resource.
Implementations§
Source§impl FixableTotalByDigest
impl FixableTotalByDigest
pub fn new() -> Self
Sourcepub fn set_resource_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_resource_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of resource_uri.
§Example
ⓘ
let x = FixableTotalByDigest::new().set_resource_uri("example");Sourcepub fn set_severity<T: Into<Severity>>(self, v: T) -> Self
pub fn set_severity<T: Into<Severity>>(self, v: T) -> Self
Sourcepub fn set_fixable_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_fixable_count<T: Into<i64>>(self, v: T) -> Self
Sets the value of fixable_count.
§Example
ⓘ
let x = FixableTotalByDigest::new().set_fixable_count(42);Sourcepub fn set_total_count<T: Into<i64>>(self, v: T) -> Self
pub fn set_total_count<T: Into<i64>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for FixableTotalByDigest
impl Clone for FixableTotalByDigest
Source§fn clone(&self) -> FixableTotalByDigest
fn clone(&self) -> FixableTotalByDigest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FixableTotalByDigest
impl Debug for FixableTotalByDigest
Source§impl Default for FixableTotalByDigest
impl Default for FixableTotalByDigest
Source§fn default() -> FixableTotalByDigest
fn default() -> FixableTotalByDigest
Returns the “default value” for a type. Read more
Source§impl Message for FixableTotalByDigest
impl Message for FixableTotalByDigest
Source§impl PartialEq for FixableTotalByDigest
impl PartialEq for FixableTotalByDigest
impl StructuralPartialEq for FixableTotalByDigest
Auto Trait Implementations§
impl Freeze for FixableTotalByDigest
impl RefUnwindSafe for FixableTotalByDigest
impl Send for FixableTotalByDigest
impl Sync for FixableTotalByDigest
impl Unpin for FixableTotalByDigest
impl UnwindSafe for FixableTotalByDigest
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