pub struct RelevanceHit {
pub id: String,
pub bm25: f64,
pub exact_anchor: bool,
pub shape: QueryShape,
}Expand description
A relevance hit. BM25 and exact-anchor are separate numbers/flags.
Fields§
§id: String§bm25: f64§exact_anchor: bool§shape: QueryShapeTrait Implementations§
Source§impl Clone for RelevanceHit
impl Clone for RelevanceHit
Source§impl Debug for RelevanceHit
impl Debug for RelevanceHit
Source§impl<'de> Deserialize<'de> for RelevanceHit
impl<'de> Deserialize<'de> for RelevanceHit
Source§fn 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
Source§impl PartialEq for RelevanceHit
impl PartialEq for RelevanceHit
Source§impl Serialize for RelevanceHit
impl Serialize for RelevanceHit
impl StructuralPartialEq for RelevanceHit
Auto Trait Implementations§
impl Freeze for RelevanceHit
impl RefUnwindSafe for RelevanceHit
impl Send for RelevanceHit
impl Sync for RelevanceHit
impl Unpin for RelevanceHit
impl UnsafeUnpin for RelevanceHit
impl UnwindSafe for RelevanceHit
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