pub struct AuditQuery {
pub tenant_id: TenantId,
pub event_type: Option<String>,
pub start_time: Option<DateTime<Utc>>,
pub end_time: Option<DateTime<Utc>>,
pub limit: Option<u32>,
pub offset: Option<u32>,
}Expand description
Query parameters for filtering audit events.
Fields§
§tenant_id: TenantIdTenant to query audit events for.
event_type: Option<String>Filter by event type.
start_time: Option<DateTime<Utc>>Start time for the query range.
end_time: Option<DateTime<Utc>>End time for the query range.
limit: Option<u32>Maximum number of results.
offset: Option<u32>Number of results to skip (for pagination).
Implementations§
Source§impl AuditQuery
impl AuditQuery
Sourcepub fn with_event_type(self, event_type: String) -> Self
pub fn with_event_type(self, event_type: String) -> Self
Filter by event type.
Sourcepub fn with_time_range(self, start: DateTime<Utc>, end: DateTime<Utc>) -> Self
pub fn with_time_range(self, start: DateTime<Utc>, end: DateTime<Utc>) -> Self
Set a time range filter.
Sourcepub fn with_limit(self, limit: u32) -> Self
pub fn with_limit(self, limit: u32) -> Self
Set the result limit.
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 moreSource§impl ComposeSchema for AuditQuery
impl ComposeSchema for AuditQuery
Source§impl Debug for AuditQuery
impl Debug for AuditQuery
Auto Trait Implementations§
impl Freeze for AuditQuery
impl RefUnwindSafe for AuditQuery
impl Send for AuditQuery
impl Sync for AuditQuery
impl Unpin for AuditQuery
impl UnsafeUnpin 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