pub struct RunLogQuery {
pub agent: Option<String>,
pub status: Option<RunStatus>,
pub limit: Option<usize>,
pub offset: usize,
}Expand description
Filter + pagination for RunLogStore::list.
status is part of the query (not a post-filter) so it composes correctly
with limit/offset: filtering after a row limit would silently drop
matching runs that fell outside the first page.
Fields§
§agent: Option<String>Exact agent-name match when set.
status: Option<RunStatus>Run-status match when set.
limit: Option<usize>Maximum number of runs to return (most-recent first). None means no
limit. The Default is None, so a ..Default::default() query is
never silently capped at zero rows.
offset: usizeNumber of leading runs to skip (pagination).
Implementations§
Trait Implementations§
Source§impl Clone for RunLogQuery
impl Clone for RunLogQuery
Source§fn clone(&self) -> RunLogQuery
fn clone(&self) -> RunLogQuery
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 RunLogQuery
impl Debug for RunLogQuery
Source§impl Default for RunLogQuery
impl Default for RunLogQuery
Source§fn default() -> RunLogQuery
fn default() -> RunLogQuery
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RunLogQuery
impl RefUnwindSafe for RunLogQuery
impl Send for RunLogQuery
impl Sync for RunLogQuery
impl Unpin for RunLogQuery
impl UnsafeUnpin for RunLogQuery
impl UnwindSafe for RunLogQuery
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