pub struct Query {
pub direction: Direction,
pub not_at_or_before_time: Option<DateTime<Utc>>,
pub not_at_or_after_time: Option<DateTime<Utc>>,
pub not_at_or_before_id: Option<i64>,
pub not_at_or_after_id: Option<i64>,
pub max_items: Option<i64>,
pub command_line_filter: Option<CommandLineFilter>,
}Expand description
Encapsulates query parameters for searching through history.
Fields§
§direction: DirectionWhether to search forward or backward
not_at_or_before_time: Option<DateTime<Utc>>Optionally, clamp results to items with a timestamp strictly after this.
not_at_or_after_time: Option<DateTime<Utc>>Optionally, clamp results to items with a timestamp strictly before this.
not_at_or_before_id: Option<i64>Optionally, clamp results to items with an ID equal strictly after this.
not_at_or_after_id: Option<i64>Optionally, clamp results to items with an ID equal strictly before this.
max_items: Option<i64>Optionally, maximum number of items to retrieve
command_line_filter: Option<CommandLineFilter>Optionally, a string-based filter on command line.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin 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
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