pub struct SearchHit {
pub node_key: NodeKey,
pub type_id: GtsTypeId,
pub name: Option<String>,
pub score: f64,
pub arms: Vec<ArmHit>,
pub snippet: Option<String>,
}Expand description
One fused search hit.
Fields§
§node_key: NodeKey§type_id: GtsTypeId§name: Option<String>§score: f64Fused (RRF) score.
arms: Vec<ArmHit>§snippet: Option<String>Highlighted snippet from the lexical arm, when it matched.
Trait Implementations§
impl StructuralPartialEq for SearchHit
Auto Trait Implementations§
impl Freeze for SearchHit
impl RefUnwindSafe for SearchHit
impl Send for SearchHit
impl Sync for SearchHit
impl Unpin for SearchHit
impl UnsafeUnpin for SearchHit
impl UnwindSafe for SearchHit
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