pub struct ExplainedLexicalCandidate {
pub document: DocumentVersion,
pub score: f64,
pub provenance: Vec<LexicalExpansion>,
pub snippet: OwnedLexicalSnippet,
}Expand description
One explained structured lexical hit with owned persisted-source text.
Fields§
§document: DocumentVersionStable application document version.
score: f64Larger-is-better boosted BM25 score.
provenance: Vec<LexicalExpansion>Expansions that contributed to this row’s score.
snippet: OwnedLexicalSnippetUTF-8-valid window copied from the exact persisted source text.
Trait Implementations§
Source§impl Clone for ExplainedLexicalCandidate
impl Clone for ExplainedLexicalCandidate
Source§fn clone(&self) -> ExplainedLexicalCandidate
fn clone(&self) -> ExplainedLexicalCandidate
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 ExplainedLexicalCandidate
impl Debug for ExplainedLexicalCandidate
impl StructuralPartialEq for ExplainedLexicalCandidate
Auto Trait Implementations§
impl Freeze for ExplainedLexicalCandidate
impl RefUnwindSafe for ExplainedLexicalCandidate
impl Send for ExplainedLexicalCandidate
impl Sync for ExplainedLexicalCandidate
impl Unpin for ExplainedLexicalCandidate
impl UnsafeUnpin for ExplainedLexicalCandidate
impl UnwindSafe for ExplainedLexicalCandidate
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