pub struct AuditQuery {
pub coordinate: Option<String>,
pub environment: Option<String>,
pub component: Option<String>,
pub since: Option<String>,
pub until: Option<String>,
pub action: Option<AuditAction>,
}Expand description
A filter over audit events for kovra audit (L12). All set conditions AND
together; a None field is unconstrained. Time bounds compare RFC-3339
strings, which sort chronologically for the UTC Z timestamps the sink
writes.
Fields§
§coordinate: Option<String>Exact coordinate (env/component/key).
environment: Option<String>Environment segment.
component: Option<String>Component segment (the middle of the coordinate).
since: Option<String>Only events at/after this RFC-3339 instant (inclusive).
until: Option<String>Only events at/before this RFC-3339 instant (inclusive).
action: Option<AuditAction>Only this action kind.
Implementations§
Source§impl AuditQuery
impl AuditQuery
Sourcepub fn matches(&self, ev: &AuditEvent) -> bool
pub fn matches(&self, ev: &AuditEvent) -> bool
Whether ev satisfies every set constraint.
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 (const: unstable) · 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 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