Enum elasticsearch::params::TrackTotalHits[][src]

pub enum TrackTotalHits {
    Track(bool),
    Count(i64),
}

Control how the total number of hits should be tracked.

When set to Track with a value true, the response will always track the number of hits that match the query accurately.

When set to Count with an integer value n, the response accurately tracks the total hit count that match the query up to n documents.

Variants

Track(bool)

Whether to accurately track the number of hits that match the query accurately

Count(i64)

Accurately track the number of hits up to the specified value

Trait Implementations

impl Clone for TrackTotalHits[src]

impl Debug for TrackTotalHits[src]

impl<'de> Deserialize<'de> for TrackTotalHits[src]

impl From<bool> for TrackTotalHits[src]

impl From<i64> for TrackTotalHits[src]

impl PartialEq<TrackTotalHits> for TrackTotalHits[src]

impl Serialize for TrackTotalHits[src]

impl StructuralPartialEq for TrackTotalHits[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> Instrument for T[src]

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

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.