pub struct TraceQuery {
pub after: Option<u64>,
pub limit: Option<usize>,
pub latest: Option<usize>,
pub kinds: Vec<String>,
pub step_ref: Option<String>,
pub attempt: Option<u32>,
}Expand description
Filter/paging parameters for RunTraceStore::list. All filters
AND together; latest and after are mutually exclusive with
latest winning (it answers “show me the tail” regardless of any
cursor the caller also carried).
Fields§
§after: Option<u64>Forward-paging cursor: only events with seq > after.
limit: Option<usize>Page size cap (defaults to DEFAULT_TRACE_LIST_LIMIT).
latest: Option<usize>Tail mode: return the LAST n matching events (still in ascending
seq order). Takes precedence over after/limit.
kinds: Vec<String>Kind filters — an event matches when its kind equals, or starts
with, ANY entry (prefix match: "mw." matches every middleware
kind). Empty = no kind filter.
step_ref: Option<String>Exact step_ref filter.
attempt: Option<u32>Exact attempt filter.
Trait Implementations§
Source§impl Clone for TraceQuery
impl Clone for TraceQuery
Source§fn clone(&self) -> TraceQuery
fn clone(&self) -> TraceQuery
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 TraceQuery
impl Debug for TraceQuery
Source§impl Default for TraceQuery
impl Default for TraceQuery
Source§fn default() -> TraceQuery
fn default() -> TraceQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TraceQuery
impl RefUnwindSafe for TraceQuery
impl Send for TraceQuery
impl Sync for TraceQuery
impl Unpin for TraceQuery
impl UnsafeUnpin for TraceQuery
impl UnwindSafe for TraceQuery
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more