Enum elasticsearch::params::TrackTotalHits
source · [−]Expand description
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
sourceimpl Clone for TrackTotalHits
impl Clone for TrackTotalHits
sourcefn clone(&self) -> TrackTotalHits
fn clone(&self) -> TrackTotalHits
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TrackTotalHits
impl Debug for TrackTotalHits
sourceimpl<'de> Deserialize<'de> for TrackTotalHits
impl<'de> Deserialize<'de> for TrackTotalHits
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<bool> for TrackTotalHits
impl From<bool> for TrackTotalHits
sourceimpl From<i64> for TrackTotalHits
impl From<i64> for TrackTotalHits
sourceimpl PartialEq<TrackTotalHits> for TrackTotalHits
impl PartialEq<TrackTotalHits> for TrackTotalHits
sourcefn eq(&self, other: &TrackTotalHits) -> bool
fn eq(&self, other: &TrackTotalHits) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TrackTotalHits) -> bool
fn ne(&self, other: &TrackTotalHits) -> bool
This method tests for !=
.
sourceimpl Serialize for TrackTotalHits
impl Serialize for TrackTotalHits
impl StructuralPartialEq for TrackTotalHits
Auto Trait Implementations
impl RefUnwindSafe for TrackTotalHits
impl Send for TrackTotalHits
impl Sync for TrackTotalHits
impl Unpin for TrackTotalHits
impl UnwindSafe for TrackTotalHits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more