pub struct AccessQuery {
pub from_micros: Option<u64>,
pub to_micros: Option<u64>,
pub actor: Option<String>,
pub operation: Option<String>,
pub limit: Option<usize>,
}Expand description
Filter for reading the access log back. All set conditions are AND-ed.
Fields§
§from_micros: Option<u64>Inclusive UTC-micros range.
to_micros: Option<u64>§actor: Option<String>Exact actor match.
operation: Option<String>Exact operation match.
limit: Option<usize>Implementations§
Source§impl AccessQuery
impl AccessQuery
pub fn matches(&self, rec: &AccessRecord) -> bool
Trait Implementations§
Source§impl Clone for AccessQuery
impl Clone for AccessQuery
Source§fn clone(&self) -> AccessQuery
fn clone(&self) -> AccessQuery
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 AccessQuery
impl Debug for AccessQuery
Source§impl Default for AccessQuery
impl Default for AccessQuery
Source§fn default() -> AccessQuery
fn default() -> AccessQuery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccessQuerywhere
AccessQuery: Default,
impl<'de> Deserialize<'de> for AccessQuerywhere
AccessQuery: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AccessQuery
impl RefUnwindSafe for AccessQuery
impl Send for AccessQuery
impl Sync for AccessQuery
impl Unpin for AccessQuery
impl UnsafeUnpin for AccessQuery
impl UnwindSafe for AccessQuery
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