pub struct AuditRepo { /* private fields */ }Expand description
Query interface for audit log records.
All methods use cursor pagination (keyset on the id column, newest
first). For filtered queries by actor, resource, tenant, or action,
use query() with a ValidatedFilter.
Implementations§
Source§impl AuditRepo
impl AuditRepo
Sourcepub async fn list(&self, req: CursorRequest) -> Result<CursorPage<AuditRecord>>
pub async fn list(&self, req: CursorRequest) -> Result<CursorPage<AuditRecord>>
Sourcepub async fn query(
&self,
filter: ValidatedFilter,
req: CursorRequest,
) -> Result<CursorPage<AuditRecord>>
pub async fn query( &self, filter: ValidatedFilter, req: CursorRequest, ) -> Result<CursorPage<AuditRecord>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuditRepo
impl !RefUnwindSafe for AuditRepo
impl Send for AuditRepo
impl Sync for AuditRepo
impl Unpin for AuditRepo
impl UnsafeUnpin for AuditRepo
impl !UnwindSafe for AuditRepo
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