Struct reedline::SearchQuery

source ·
pub struct SearchQuery {
    pub direction: SearchDirection,
    pub start_time: Option<DateTime<Utc>>,
    pub end_time: Option<DateTime<Utc>>,
    pub start_id: Option<HistoryItemId>,
    pub end_id: Option<HistoryItemId>,
    pub limit: Option<i64>,
    pub filter: SearchFilter,
}
Expand description

Query for search in the potentially rich History

Fields

direction: SearchDirection

Direction to search in

start_time: Option<DateTime<Utc>>

if given, only get results after/before this time (depending on direction)

end_time: Option<DateTime<Utc>>

if given, only get results after/before this time (depending on direction)

start_id: Option<HistoryItemId>

if given, only get results after/before this id (depending on direction)

end_id: Option<HistoryItemId>

if given, only get results after/before this id (depending on direction)

limit: Option<i64>

How many results to get

filter: SearchFilter

Additional filters defined with SearchFilter

Implementations

Currently pub ways to construct a query

all that contain string in reverse chronological order

Get the most recent entry matching SearchFilter

Get the most recent entry starting with the prefix

Query to get all entries in the given SearchDirection

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.