pub struct ComplianceReportCatalog { /* private fields */ }Expand description
In-memory catalog of caller-supplied report records.
Implementations§
Source§impl ComplianceReportCatalog
impl ComplianceReportCatalog
pub fn new() -> Self
Sourcepub fn record_report(&mut self, report: ComplianceReport) -> bool
pub fn record_report(&mut self, report: ComplianceReport) -> bool
Records only reports whose optional percentage is finite and in range.
pub fn reports_for( &self, framework: ComplianceFramework, ) -> Vec<&ComplianceReport>
Sourcepub fn most_recent_reports(
&self,
framework: ComplianceFramework,
) -> Vec<&ComplianceReport>
pub fn most_recent_reports( &self, framework: ComplianceFramework, ) -> Vec<&ComplianceReport>
Returns all reports tied for the greatest caller-supplied timestamp.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for ComplianceReportCatalog
impl Clone for ComplianceReportCatalog
Source§fn clone(&self) -> ComplianceReportCatalog
fn clone(&self) -> ComplianceReportCatalog
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 ComplianceReportCatalog
impl Debug for ComplianceReportCatalog
Source§impl Default for ComplianceReportCatalog
impl Default for ComplianceReportCatalog
Source§fn default() -> ComplianceReportCatalog
fn default() -> ComplianceReportCatalog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComplianceReportCatalog
impl RefUnwindSafe for ComplianceReportCatalog
impl Send for ComplianceReportCatalog
impl Sync for ComplianceReportCatalog
impl Unpin for ComplianceReportCatalog
impl UnsafeUnpin for ComplianceReportCatalog
impl UnwindSafe for ComplianceReportCatalog
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