Struct elasticsearch_dsl::search::HitsMetadata
source · [−]pub struct HitsMetadata {
pub total: Option<TotalHits>,
pub max_score: Option<f32>,
pub hits: Vec<Hit>,
}
Expand description
Matched hits
Fields
total: Option<TotalHits>
Total number of matched documents
max_score: Option<f32>
Maximum document score. None
when documents are implicitly sorted
by a field other than _score
hits: Vec<Hit>
Matched hits
Trait Implementations
sourceimpl Clone for HitsMetadata
impl Clone for HitsMetadata
sourcefn clone(&self) -> HitsMetadata
fn clone(&self) -> HitsMetadata
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 HitsMetadata
impl Debug for HitsMetadata
sourceimpl<'de> Deserialize<'de> for HitsMetadata
impl<'de> Deserialize<'de> for HitsMetadata
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 PartialEq<HitsMetadata> for HitsMetadata
impl PartialEq<HitsMetadata> for HitsMetadata
sourcefn eq(&self, other: &HitsMetadata) -> bool
fn eq(&self, other: &HitsMetadata) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &HitsMetadata) -> bool
fn ne(&self, other: &HitsMetadata) -> bool
This method tests for !=
.
sourceimpl Serialize for HitsMetadata
impl Serialize for HitsMetadata
impl StructuralPartialEq for HitsMetadata
Auto Trait Implementations
impl RefUnwindSafe for HitsMetadata
impl Send for HitsMetadata
impl Sync for HitsMetadata
impl Unpin for HitsMetadata
impl UnwindSafe for HitsMetadata
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