#[non_exhaustive]pub struct FindingTypeStats {
pub finding_type: String,
pub finding_count: i32,
/* private fields */
}Expand description
A FindingTypeStats resource represents stats regarding a specific FindingType of Findings under a given ScanRun.
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.finding_type: StringOutput only. The finding type associated with the stats.
finding_count: i32Output only. The count of findings belonging to this finding type.
Implementations§
Source§impl FindingTypeStats
impl FindingTypeStats
pub fn new() -> Self
Sourcepub fn set_finding_type<T: Into<String>>(self, v: T) -> Self
pub fn set_finding_type<T: Into<String>>(self, v: T) -> Self
Sets the value of finding_type.
§Example
ⓘ
let x = FindingTypeStats::new().set_finding_type("example");Sourcepub fn set_finding_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_finding_count<T: Into<i32>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for FindingTypeStats
impl Clone for FindingTypeStats
Source§fn clone(&self) -> FindingTypeStats
fn clone(&self) -> FindingTypeStats
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 FindingTypeStats
impl Debug for FindingTypeStats
Source§impl Default for FindingTypeStats
impl Default for FindingTypeStats
Source§fn default() -> FindingTypeStats
fn default() -> FindingTypeStats
Returns the “default value” for a type. Read more
Source§impl Message for FindingTypeStats
impl Message for FindingTypeStats
Source§impl PartialEq for FindingTypeStats
impl PartialEq for FindingTypeStats
impl StructuralPartialEq for FindingTypeStats
Auto Trait Implementations§
impl Freeze for FindingTypeStats
impl RefUnwindSafe for FindingTypeStats
impl Send for FindingTypeStats
impl Sync for FindingTypeStats
impl Unpin for FindingTypeStats
impl UnwindSafe for FindingTypeStats
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