Struct graphannis::corpusstorage::SearchQuery[][src]

pub struct SearchQuery<'a, S: AsRef<str>> {
    pub corpus_names: &'a [S],
    pub query: &'a str,
    pub query_language: QueryLanguage,
    pub timeout: Option<Duration>,
}

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

impl<'a, S: Clone + AsRef<str>> Clone for SearchQuery<'a, S>[src]

impl<'a, S: Debug + AsRef<str>> Debug for SearchQuery<'a, S>[src]

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,