pub struct Hit<T> {
pub id: String,
pub score: f32,
pub source: T,
}Expand description
One search hit: the typed document plus its envelope metadata.
Fields§
§id: StringThe document id (root primary key, stringified by OpenSearch).
score: f32The relevance score (0.0 when the query didn’t score).
source: TThe fully-typed document.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Hit<T>where
T: Freeze,
impl<T> RefUnwindSafe for Hit<T>where
T: RefUnwindSafe,
impl<T> Send for Hit<T>where
T: Send,
impl<T> Sync for Hit<T>where
T: Sync,
impl<T> Unpin for Hit<T>where
T: Unpin,
impl<T> UnsafeUnpin for Hit<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Hit<T>where
T: UnwindSafe,
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