pub struct Query {Show 17 fields
pub org: Option<String>,
pub platform: bool,
pub actor: Option<String>,
pub user_id: Option<i64>,
pub token_id: Option<i64>,
pub action: Option<String>,
pub target: Option<String>,
pub outcome: Option<String>,
pub surface: Option<String>,
pub since: Option<i64>,
pub until: Option<i64>,
pub before: Option<i64>,
pub after: Option<i64>,
pub limit: Option<usize>,
pub object: Option<String>,
pub object_exact: bool,
pub ascending: bool,
}Expand description
A query. Globs are shell-style (*, ?, [a-z], [!x]).
Fields§
§org: Option<String>One org’s rows. With platform, only platform-level rows.
platform: bool§actor: Option<String>Matches the actor name or the user’s email (glob).
user_id: Option<i64>§token_id: Option<i64>§action: Option<String>Glob on the action: secret_*, auth.*.
target: Option<String>Glob on the target.
outcome: Option<String>ok, error (anything but ok), or an exact code.
surface: Option<String>§since: Option<i64>Unix milliseconds, inclusive.
until: Option<i64>Unix milliseconds, exclusive.
before: Option<i64>Older than this id (paging backwards, newest first).
after: Option<i64>Newer than this id (tailing, oldest first).
limit: Option<usize>Default 100, at most 1000.
object: Option<String>A name the row is about: its target, or a value in its details.
Substring, or the whole value with object_exact.
object_exact: bool§ascending: boolOldest first (without after).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Query
impl<'de> Deserialize<'de> for Query
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 Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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