pub struct DashboardOverview {
pub total_scans: u64,
pub active_scans: u64,
pub completed_scans: u64,
pub failed_scans: u64,
pub total_findings: u64,
pub critical_findings: u64,
pub high_findings: u64,
pub average_completed_scan_duration_secs: Option<u64>,
}Expand description
Caller-supplied counts for a scan overview.
Fields§
§total_scans: u64§active_scans: u64§completed_scans: u64§failed_scans: u64§total_findings: u64§critical_findings: u64§high_findings: u64§average_completed_scan_duration_secs: Option<u64>Implementations§
Source§impl DashboardOverview
impl DashboardOverview
Sourcepub fn completion_ratio(&self) -> Option<f64>
pub fn completion_ratio(&self) -> Option<f64>
Returns completed_scans / total_scans only for a non-empty,
internally consistent overview.
None means that the denominator is zero, an addition overflowed, or
the active, completed, and failed counts do not account for the stated
total. A returned ratio is therefore always in the inclusive 0..=1
range.
Trait Implementations§
Source§impl Clone for DashboardOverview
impl Clone for DashboardOverview
Source§fn clone(&self) -> DashboardOverview
fn clone(&self) -> DashboardOverview
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DashboardOverview
impl Debug for DashboardOverview
Source§impl<'de> Deserialize<'de> for DashboardOverview
impl<'de> Deserialize<'de> for DashboardOverview
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DashboardOverview
impl PartialEq for DashboardOverview
Source§impl Serialize for DashboardOverview
impl Serialize for DashboardOverview
impl StructuralPartialEq for DashboardOverview
Auto Trait Implementations§
impl Freeze for DashboardOverview
impl RefUnwindSafe for DashboardOverview
impl Send for DashboardOverview
impl Sync for DashboardOverview
impl Unpin for DashboardOverview
impl UnsafeUnpin for DashboardOverview
impl UnwindSafe for DashboardOverview
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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