#[non_exhaustive]pub struct MetricsSummaryBuilder { /* private fields */ }
Expand description
A builder for MetricsSummary
.
Implementations§
source§impl MetricsSummaryBuilder
impl MetricsSummaryBuilder
sourcepub fn date(self, input: DateTime) -> Self
pub fn date(self, input: DateTime) -> Self
The date from which the metrics summary information was retrieved.
sourcepub fn set_date(self, input: Option<DateTime>) -> Self
pub fn set_date(self, input: Option<DateTime>) -> Self
The date from which the metrics summary information was retrieved.
sourcepub fn get_date(&self) -> &Option<DateTime>
pub fn get_date(&self) -> &Option<DateTime>
The date from which the metrics summary information was retrieved.
sourcepub fn open_findings(self, input: FindingMetricsValuePerSeverity) -> Self
pub fn open_findings(self, input: FindingMetricsValuePerSeverity) -> Self
The number of open findings of each severity.
sourcepub fn set_open_findings(
self,
input: Option<FindingMetricsValuePerSeverity>,
) -> Self
pub fn set_open_findings( self, input: Option<FindingMetricsValuePerSeverity>, ) -> Self
The number of open findings of each severity.
sourcepub fn get_open_findings(&self) -> &Option<FindingMetricsValuePerSeverity>
pub fn get_open_findings(&self) -> &Option<FindingMetricsValuePerSeverity>
The number of open findings of each severity.
sourcepub fn categories_with_most_findings(
self,
input: CategoryWithFindingNum,
) -> Self
pub fn categories_with_most_findings( self, input: CategoryWithFindingNum, ) -> Self
Appends an item to categories_with_most_findings
.
To override the contents of this collection use set_categories_with_most_findings
.
A list of CategoryWithFindingNum
objects for the top 5 finding categories with the most findings.
sourcepub fn set_categories_with_most_findings(
self,
input: Option<Vec<CategoryWithFindingNum>>,
) -> Self
pub fn set_categories_with_most_findings( self, input: Option<Vec<CategoryWithFindingNum>>, ) -> Self
A list of CategoryWithFindingNum
objects for the top 5 finding categories with the most findings.
sourcepub fn get_categories_with_most_findings(
&self,
) -> &Option<Vec<CategoryWithFindingNum>>
pub fn get_categories_with_most_findings( &self, ) -> &Option<Vec<CategoryWithFindingNum>>
A list of CategoryWithFindingNum
objects for the top 5 finding categories with the most findings.
sourcepub fn scans_with_most_open_findings(
self,
input: ScanNameWithFindingNum,
) -> Self
pub fn scans_with_most_open_findings( self, input: ScanNameWithFindingNum, ) -> Self
Appends an item to scans_with_most_open_findings
.
To override the contents of this collection use set_scans_with_most_open_findings
.
A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open findings.
sourcepub fn set_scans_with_most_open_findings(
self,
input: Option<Vec<ScanNameWithFindingNum>>,
) -> Self
pub fn set_scans_with_most_open_findings( self, input: Option<Vec<ScanNameWithFindingNum>>, ) -> Self
A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open findings.
sourcepub fn get_scans_with_most_open_findings(
&self,
) -> &Option<Vec<ScanNameWithFindingNum>>
pub fn get_scans_with_most_open_findings( &self, ) -> &Option<Vec<ScanNameWithFindingNum>>
A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open findings.
sourcepub fn scans_with_most_open_critical_findings(
self,
input: ScanNameWithFindingNum,
) -> Self
pub fn scans_with_most_open_critical_findings( self, input: ScanNameWithFindingNum, ) -> Self
Appends an item to scans_with_most_open_critical_findings
.
To override the contents of this collection use set_scans_with_most_open_critical_findings
.
A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open critical findings.
sourcepub fn set_scans_with_most_open_critical_findings(
self,
input: Option<Vec<ScanNameWithFindingNum>>,
) -> Self
pub fn set_scans_with_most_open_critical_findings( self, input: Option<Vec<ScanNameWithFindingNum>>, ) -> Self
A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open critical findings.
sourcepub fn get_scans_with_most_open_critical_findings(
&self,
) -> &Option<Vec<ScanNameWithFindingNum>>
pub fn get_scans_with_most_open_critical_findings( &self, ) -> &Option<Vec<ScanNameWithFindingNum>>
A list of ScanNameWithFindingNum
objects for the top 3 scans with the most number of open critical findings.
sourcepub fn build(self) -> MetricsSummary
pub fn build(self) -> MetricsSummary
Consumes the builder and constructs a MetricsSummary
.
Trait Implementations§
source§impl Clone for MetricsSummaryBuilder
impl Clone for MetricsSummaryBuilder
source§fn clone(&self) -> MetricsSummaryBuilder
fn clone(&self) -> MetricsSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricsSummaryBuilder
impl Debug for MetricsSummaryBuilder
source§impl Default for MetricsSummaryBuilder
impl Default for MetricsSummaryBuilder
source§fn default() -> MetricsSummaryBuilder
fn default() -> MetricsSummaryBuilder
source§impl PartialEq for MetricsSummaryBuilder
impl PartialEq for MetricsSummaryBuilder
source§fn eq(&self, other: &MetricsSummaryBuilder) -> bool
fn eq(&self, other: &MetricsSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MetricsSummaryBuilder
Auto Trait Implementations§
impl Freeze for MetricsSummaryBuilder
impl RefUnwindSafe for MetricsSummaryBuilder
impl Send for MetricsSummaryBuilder
impl Sync for MetricsSummaryBuilder
impl Unpin for MetricsSummaryBuilder
impl UnwindSafe for MetricsSummaryBuilder
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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