pub struct LogQuery {
pub from_micros: Option<u64>,
pub to_micros: Option<u64>,
pub method: Option<String>,
pub url_prefix: Option<String>,
pub actor: Option<TargetFilter>,
pub targets: Vec<TargetFilter>,
pub custom: BTreeMap<String, Value>,
pub limit: Option<usize>,
pub order: Order,
pub cursor: Option<String>,
}Expand description
Declarative log query. All set conditions are AND-ed.
Fields§
§from_micros: Option<u64>Inclusive UTC-micros range.
to_micros: Option<u64>§method: Option<String>§url_prefix: Option<String>§actor: Option<TargetFilter>Filter by actor registry attributes (same semantics as target filters, applied to the actor’s registry).
targets: Vec<TargetFilter>Target conditions, AND-ed: a log matches only if it touches an entity matching every filter (“logs that touched X and Y”).
custom: BTreeMap<String, Value>Custom-column equality conditions.
limit: Option<usize>Page size. With Order::Desc (the default) this means “the latest
N matches”; the page’s next_cursor continues into older records.
order: OrderScan/result order. Defaults to newest-first.
cursor: Option<String>Opaque continuation token from a previous page’s
QueryPage::next_cursor. The rest of the query (filters, order)
must stay identical between pages — the cursor only encodes where
the previous page stopped, not what it matched.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogQuery
impl<'de> Deserialize<'de> for LogQuery
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 LogQuery
impl RefUnwindSafe for LogQuery
impl Send for LogQuery
impl Sync for LogQuery
impl Unpin for LogQuery
impl UnsafeUnpin for LogQuery
impl UnwindSafe for LogQuery
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