Struct graphannis::corpusstorage::SearchQuery
source · pub struct SearchQuery<'a, S: AsRef<str>> {
pub corpus_names: &'a [S],
pub query: &'a str,
pub query_language: QueryLanguage,
pub timeout: Option<Duration>,
}
Expand description
Common arguments to all search queries.
Fields§
§corpus_names: &'a [S]
The name of the corpora to execute the query on.
query: &'a str
The query as string.
query_language: QueryLanguage
The query language of the query (e.g. AQL).
timeout: Option<Duration>
If not None
, the query will be aborted after running for the given amount of time.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for SearchQuery<'a, S>
impl<'a, S> RefUnwindSafe for SearchQuery<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for SearchQuery<'a, S>where
S: Sync,
impl<'a, S> Sync for SearchQuery<'a, S>where
S: Sync,
impl<'a, S> Unpin for SearchQuery<'a, S>
impl<'a, S> UnwindSafe for SearchQuery<'a, S>where
S: RefUnwindSafe,
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> 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