pub struct AuditQuery {
pub entries: Vec<AuditLogEntry>,
pub total: usize,
pub pagination: Pagination,
}Expand description
Query result with pagination metadata
Fields§
§entries: Vec<AuditLogEntry>Filtered and paginated entries
total: usizeTotal number of entries matching the filter
pagination: PaginationCurrent pagination
Implementations§
Source§impl AuditQuery
impl AuditQuery
Sourcepub fn execute(
entries: &[AuditLogEntry],
filter: &QueryFilter,
pagination: &Pagination,
) -> Self
pub fn execute( entries: &[AuditLogEntry], filter: &QueryFilter, pagination: &Pagination, ) -> Self
Execute a query on the given entries
Sourcepub fn total_pages(&self) -> usize
pub fn total_pages(&self) -> usize
Get the total number of pages
Sourcepub fn current_page(&self) -> usize
pub fn current_page(&self) -> usize
Get the current page number (1-indexed)
Sourcepub fn has_next_page(&self) -> bool
pub fn has_next_page(&self) -> bool
Check if there is a next page
Sourcepub fn has_prev_page(&self) -> bool
pub fn has_prev_page(&self) -> bool
Check if there is a previous page
Trait Implementations§
Source§impl Clone for AuditQuery
impl Clone for AuditQuery
Source§fn clone(&self) -> AuditQuery
fn clone(&self) -> AuditQuery
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuditQuery
impl RefUnwindSafe for AuditQuery
impl Send for AuditQuery
impl Sync for AuditQuery
impl Unpin for AuditQuery
impl UnwindSafe for AuditQuery
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