pub enum TotalHitsRelation {
GreaterThanOrEqualTo,
Equal,
}
Expand description
Relation to total number of matched documents
Variants§
GreaterThanOrEqualTo
When track_total_hits
is false
(default), Elasticsearch returns that
there have been more than 10,000 documents
Equal
When there are less than 10,000 documents or track_total_hits
is set
to true
, exact number of matched documents will be brought back
Trait Implementations§
Source§impl Clone for TotalHitsRelation
impl Clone for TotalHitsRelation
Source§fn clone(&self) -> TotalHitsRelation
fn clone(&self) -> TotalHitsRelation
Returns a copy 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 TotalHitsRelation
impl Debug for TotalHitsRelation
Source§impl<'de> Deserialize<'de> for TotalHitsRelation
impl<'de> Deserialize<'de> for TotalHitsRelation
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 PartialEq for TotalHitsRelation
impl PartialEq for TotalHitsRelation
Source§impl Serialize for TotalHitsRelation
impl Serialize for TotalHitsRelation
impl Copy for TotalHitsRelation
impl Eq for TotalHitsRelation
impl StructuralPartialEq for TotalHitsRelation
Auto Trait Implementations§
impl Freeze for TotalHitsRelation
impl RefUnwindSafe for TotalHitsRelation
impl Send for TotalHitsRelation
impl Sync for TotalHitsRelation
impl Unpin for TotalHitsRelation
impl UnwindSafe for TotalHitsRelation
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