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 moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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