pub struct QueryFilter {
pub tool: Option<String>,
pub action: Option<AuditAction>,
pub result: Option<AuditResult>,
pub agent: Option<String>,
pub start_date: Option<DateTime<Utc>>,
pub end_date: Option<DateTime<Utc>>,
}Expand description
Filter criteria for audit log queries
Fields§
§tool: Option<String>Filter by tool name (optional)
action: Option<AuditAction>Filter by action (optional)
result: Option<AuditResult>Filter by result (optional)
agent: Option<String>Filter by agent (optional)
start_date: Option<DateTime<Utc>>Filter by start date (optional)
end_date: Option<DateTime<Utc>>Filter by end date (optional)
Implementations§
Source§impl QueryFilter
impl QueryFilter
Sourcepub fn with_action(self, action: AuditAction) -> Self
pub fn with_action(self, action: AuditAction) -> Self
Filter by action
Sourcepub fn with_result(self, result: AuditResult) -> Self
pub fn with_result(self, result: AuditResult) -> Self
Filter by result
Sourcepub fn with_agent(self, agent: String) -> Self
pub fn with_agent(self, agent: String) -> Self
Filter by agent
Sourcepub fn with_start_date(self, date: DateTime<Utc>) -> Self
pub fn with_start_date(self, date: DateTime<Utc>) -> Self
Filter by start date
Sourcepub fn with_end_date(self, date: DateTime<Utc>) -> Self
pub fn with_end_date(self, date: DateTime<Utc>) -> Self
Filter by end date
Trait Implementations§
Source§impl Clone for QueryFilter
impl Clone for QueryFilter
Source§fn clone(&self) -> QueryFilter
fn clone(&self) -> QueryFilter
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 Debug for QueryFilter
impl Debug for QueryFilter
Auto Trait Implementations§
impl Freeze for QueryFilter
impl RefUnwindSafe for QueryFilter
impl Send for QueryFilter
impl Sync for QueryFilter
impl Unpin for QueryFilter
impl UnwindSafe for QueryFilter
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