pub struct AuditQuery {
pub after: i64,
pub limit: u32,
}Expand description
What an audit read asks for: at most limit records after the seq
after, oldest first.
Fields§
§after: i64§limit: u32Implementations§
Source§impl AuditQuery
impl AuditQuery
pub const DEFAULT_LIMIT: u32 = 1000
pub const MAX_LIMIT: u32 = 10000
Sourcepub fn new(
after: Option<u64>,
limit: Option<u64>,
) -> Result<AuditQuery, BadQuery>
pub fn new( after: Option<u64>, limit: Option<u64>, ) -> Result<AuditQuery, BadQuery>
An audit query from its parameters’ values, the one rule for them
wherever they come from: after a seq (0, the default, is the
start of the log), limit 1 to MAX_LIMIT.
Sourcepub fn from_query(text: Option<&str>) -> Result<AuditQuery, BadQuery>
pub fn from_query(text: Option<&str>) -> Result<AuditQuery, BadQuery>
An audit query from an HTTP query string, which may name after and
limit, each at most once.
Trait Implementations§
Source§impl Clone for AuditQuery
impl Clone for AuditQuery
impl Copy for AuditQuery
Source§impl Debug for AuditQuery
impl Debug for AuditQuery
impl Eq for AuditQuery
Source§impl PartialEq for AuditQuery
impl PartialEq for AuditQuery
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.