pub struct AuditReport { /* private fields */ }Expand description
Audit report generator.
Implementations§
Source§impl AuditReport
impl AuditReport
Sourcepub fn new(entries: Vec<AuditLogEntry>) -> Self
pub fn new(entries: Vec<AuditLogEntry>) -> Self
Create new audit report.
Sourcepub fn total_count(&self) -> usize
pub fn total_count(&self) -> usize
Get total count.
Sourcepub fn success_count(&self) -> usize
pub fn success_count(&self) -> usize
Get success count.
Sourcepub fn failure_count(&self) -> usize
pub fn failure_count(&self) -> usize
Get failure count.
Sourcepub fn denied_count(&self) -> usize
pub fn denied_count(&self) -> usize
Get denied count.
Sourcepub fn by_event_type(&self) -> HashMap<AuditEventType, usize>
pub fn by_event_type(&self) -> HashMap<AuditEventType, usize>
Group by event type.
Sourcepub fn by_subject(&self) -> HashMap<String, usize>
pub fn by_subject(&self) -> HashMap<String, usize>
Group by subject.
Auto Trait Implementations§
impl Freeze for AuditReport
impl RefUnwindSafe for AuditReport
impl Send for AuditReport
impl Sync for AuditReport
impl Unpin for AuditReport
impl UnsafeUnpin for AuditReport
impl UnwindSafe for AuditReport
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
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>
Converts
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>
Converts
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