pub struct Hit {
pub index: String,
pub id: String,
pub score: Option<f64>,
pub source: Json,
pub sort: Vec<Json>,
}Expand description
One matching document.
Fields§
§index: String§id: String§score: Option<f64>None when the search was sorted by a field rather than by relevance.
source: JsonThe document, or the part of it _source filtering asked for.
sort: Vec<Json>The values this hit sorted on, for paging with search_after.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Hit
Auto Trait Implementations§
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hit
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