pub enum TrackTotalHits {
Track(bool),
Count(i64),
}
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§
Source§impl Clone for TrackTotalHits
impl Clone for TrackTotalHits
Source§fn clone(&self) -> TrackTotalHits
fn clone(&self) -> TrackTotalHits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TrackTotalHits
impl Debug for TrackTotalHits
Source§impl<'de> Deserialize<'de> for TrackTotalHits
impl<'de> Deserialize<'de> for TrackTotalHits
Source§fn 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
Source§impl From<bool> for TrackTotalHits
impl From<bool> for TrackTotalHits
Source§impl From<i64> for TrackTotalHits
impl From<i64> for TrackTotalHits
Source§impl PartialEq for TrackTotalHits
impl PartialEq for TrackTotalHits
Source§impl Serialize for TrackTotalHits
impl Serialize for TrackTotalHits
impl StructuralPartialEq for TrackTotalHits
Auto Trait Implementations§
impl Freeze for TrackTotalHits
impl RefUnwindSafe for TrackTotalHits
impl Send for TrackTotalHits
impl Sync for TrackTotalHits
impl Unpin for TrackTotalHits
impl UnwindSafe for TrackTotalHits
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