pub struct AuditTrail { /* private fields */ }Expand description
In-memory audit record collection.
Implementations§
Source§impl AuditTrail
impl AuditTrail
pub fn new() -> Self
pub fn record_entry(&mut self, entry: AuditLogEntry)
pub fn entries_by_type(&self, event_type: AuditEventType) -> Vec<&AuditLogEntry>
pub fn entries_by_user(&self, user_id: &str) -> Vec<&AuditLogEntry>
pub fn entries_since(&self, timestamp: u64) -> Vec<&AuditLogEntry>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for AuditTrail
impl Clone for AuditTrail
Source§fn clone(&self) -> AuditTrail
fn clone(&self) -> AuditTrail
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 AuditTrail
impl Debug for AuditTrail
Source§impl Default for AuditTrail
impl Default for AuditTrail
Source§fn default() -> AuditTrail
fn default() -> AuditTrail
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AuditTrail
impl RefUnwindSafe for AuditTrail
impl Send for AuditTrail
impl Sync for AuditTrail
impl Unpin for AuditTrail
impl UnsafeUnpin for AuditTrail
impl UnwindSafe for AuditTrail
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