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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for HitsMetadata
impl Debug for HitsMetadata
sourceimpl Default for HitsMetadata
impl Default for HitsMetadata
sourcefn default() -> HitsMetadata
fn default() -> HitsMetadata
Returns the “default value” for a type. Read more
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
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 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