Struct elasticsearch_dsl::search::Hits
source · [−]pub struct Hits<H, IH> {
pub total: Option<Total>,
pub max_score: Option<f32>,
pub hits: Vec<Hit<H, IH>>,
}
Expand description
Matched hits
Fields
total: Option<Total>
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<H, IH>>
Matched hits
Trait Implementations
sourceimpl<'de, H, IH> Deserialize<'de> for Hits<H, IH> where
H: Deserialize<'de>,
IH: Deserialize<'de>,
impl<'de, H, IH> Deserialize<'de> for Hits<H, IH> where
H: Deserialize<'de>,
IH: Deserialize<'de>,
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
impl<H, IH> StructuralPartialEq for Hits<H, IH>
Auto Trait Implementations
impl<H, IH> RefUnwindSafe for Hits<H, IH> where
H: RefUnwindSafe,
IH: RefUnwindSafe,
impl<H, IH> Send for Hits<H, IH> where
H: Send,
IH: Send,
impl<H, IH> Sync for Hits<H, IH> where
H: Sync,
IH: Sync,
impl<H, IH> Unpin for Hits<H, IH> where
H: Unpin,
IH: Unpin,
impl<H, IH> UnwindSafe for Hits<H, IH> where
H: UnwindSafe,
IH: UnwindSafe,
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