pub struct InMemoryAuditBackend { /* private fields */ }Trait Implementations§
Source§impl AuditBackend for InMemoryAuditBackend
impl AuditBackend for InMemoryAuditBackend
fn append(&self, event: &AuditEvent)
Source§fn find_for_tenant(&self, tenant_id: &str, limit: usize) -> Vec<AuditEvent>
fn find_for_tenant(&self, tenant_id: &str, limit: usize) -> Vec<AuditEvent>
Tenant-scoped query. Returns at most
limit events newest-first.
Backends MUST respect tenant_id to prevent cross-tenant leak.Source§fn find_for_user(&self, user_id: &str, limit: usize) -> Vec<AuditEvent>
fn find_for_user(&self, user_id: &str, limit: usize) -> Vec<AuditEvent>
User-scoped query. Returns events where the user is the
subject OR the actor.
Auto Trait Implementations§
impl !Freeze for InMemoryAuditBackend
impl RefUnwindSafe for InMemoryAuditBackend
impl Send for InMemoryAuditBackend
impl Sync for InMemoryAuditBackend
impl Unpin for InMemoryAuditBackend
impl UnsafeUnpin for InMemoryAuditBackend
impl UnwindSafe for InMemoryAuditBackend
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