#[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 in an account.
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 in an account.
sourcepub fn get_open_findings(&self) -> &Option<FindingMetricsValuePerSeverity>
pub fn get_open_findings(&self) -> &Option<FindingMetricsValuePerSeverity>
The number of open findings of each severity in an account.
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 open findings in an account.
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 open findings in an account.
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 open findings in an account.
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 critical findings in an account.
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 critical findings in an account.
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 critical findings in an account.
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 findings in an account.
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 findings in an account.
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 findings in an account.
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 ==
.