pub struct LexicalExplanation {
pub lexical_match: f32,
pub query_terms: Vec<String>,
pub matched_claim_terms: Vec<String>,
pub matched_domain_terms: Vec<String>,
pub matched_terms: Vec<String>,
}Expand description
Explanation for the lexical component of retrieval.
Fields§
§lexical_match: f32Normalized lexical match in [0, 1].
query_terms: Vec<String>Distinct normalized query terms used for matching.
matched_claim_terms: Vec<String>Query terms found in the memory claim.
matched_domain_terms: Vec<String>Query terms found in the memory domain tags.
matched_terms: Vec<String>Distinct query terms found in either indexed field.
Trait Implementations§
Source§impl Clone for LexicalExplanation
impl Clone for LexicalExplanation
Source§fn clone(&self) -> LexicalExplanation
fn clone(&self) -> LexicalExplanation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LexicalExplanation
impl Debug for LexicalExplanation
Source§impl PartialEq for LexicalExplanation
impl PartialEq for LexicalExplanation
Source§fn eq(&self, other: &LexicalExplanation) -> bool
fn eq(&self, other: &LexicalExplanation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LexicalExplanation
Auto Trait Implementations§
impl Freeze for LexicalExplanation
impl RefUnwindSafe for LexicalExplanation
impl Send for LexicalExplanation
impl Sync for LexicalExplanation
impl Unpin for LexicalExplanation
impl UnsafeUnpin for LexicalExplanation
impl UnwindSafe for LexicalExplanation
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