pub struct AuditQuery {
pub suppression_id: Option<String>,
pub actor: Option<String>,
pub action: Option<AuditAction>,
pub min_severity: Option<AuditSeverity>,
pub from: Option<String>,
pub to: Option<String>,
pub tags: Vec<String>,
pub limit: Option<usize>,
pub offset: usize,
}Expand description
Audit log query builder
Fields§
§suppression_id: Option<String>Filter by suppression ID
actor: Option<String>Filter by actor
action: Option<AuditAction>Filter by action
min_severity: Option<AuditSeverity>Filter by minimum severity
from: Option<String>Filter by start time
to: Option<String>Filter by end time
Filter by tags
limit: Option<usize>Maximum results
offset: usizeOffset for pagination
Implementations§
Source§impl AuditQuery
impl AuditQuery
pub fn new() -> Self
pub fn for_suppression(id: impl Into<String>) -> Self
pub fn by_actor(actor: impl Into<String>) -> Self
pub fn with_action(self, action: AuditAction) -> Self
pub fn with_limit(self, limit: usize) -> Self
pub fn with_offset(self, offset: usize) -> Self
pub fn with_tag(self, tag: impl Into<String>) -> Self
Sourcepub fn matches(&self, event: &AuditEvent) -> bool
pub fn matches(&self, event: &AuditEvent) -> bool
Check if an event matches this query
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 Debug for AuditQuery
impl Debug for AuditQuery
Source§impl Default for AuditQuery
impl Default for AuditQuery
Source§fn default() -> AuditQuery
fn default() -> AuditQuery
Returns the “default value” for a type. Read more
Auto 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