pub struct AuditStore { /* private fields */ }Implementations§
Source§impl AuditStore
impl AuditStore
pub fn new() -> Self
pub fn with_backend(backend: Box<dyn AuditBackend>) -> Self
Sourcepub fn log(&self, event: AuditEvent)
pub fn log(&self, event: AuditEvent)
Convenience: build + append in one call. Most call sites do
store.log(AuditEventBuilder::new(...).user(...).build()).
pub fn find_for_tenant(&self, tenant_id: &str, limit: usize) -> Vec<AuditEvent>
pub fn find_for_user(&self, user_id: &str, limit: usize) -> Vec<AuditEvent>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuditStore
impl !RefUnwindSafe for AuditStore
impl Send for AuditStore
impl Sync for AuditStore
impl Unpin for AuditStore
impl UnsafeUnpin for AuditStore
impl !UnwindSafe for AuditStore
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