Struct elasticsearch_dsl::search::InnerHit
source · [−]pub struct InnerHit<IH> {
pub index: Option<String>,
pub id: String,
pub score: Option<f32>,
pub nested: Option<Nested>,
pub source: Option<IH>,
pub matched_queries: Vec<String>,
pub sort: Vec<Value>,
}
Expand description
Represents a single matched inner hit document
Fields
index: Option<String>
Document index
id: String
Document ID
score: Option<f32>
Document score. None
when documents are implicitly sorted by a
field other than _score
nested: Option<Nested>
Nested document metadata
source: Option<IH>
Document source
matched_queries: Vec<String>
Matched queries
sort: Vec<Value>
Values document was sorted by
Trait Implementations
sourceimpl<'de, IH> Deserialize<'de> for InnerHit<IH> where
IH: Deserialize<'de>,
impl<'de, IH> Deserialize<'de> for InnerHit<IH> where
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<IH> StructuralPartialEq for InnerHit<IH>
Auto Trait Implementations
impl<IH> RefUnwindSafe for InnerHit<IH> where
IH: RefUnwindSafe,
impl<IH> Send for InnerHit<IH> where
IH: Send,
impl<IH> Sync for InnerHit<IH> where
IH: Sync,
impl<IH> Unpin for InnerHit<IH> where
IH: Unpin,
impl<IH> UnwindSafe for InnerHit<IH> where
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