pub struct ScoredEntry {
pub entry: ContextEntry,
pub score: f64,
}Expand description
A search result with relevance score.
Fields§
§entry: ContextEntryThe matched entry.
score: f64Relevance score (higher is more relevant).
Trait Implementations§
Source§impl Clone for ScoredEntry
impl Clone for ScoredEntry
Source§fn clone(&self) -> ScoredEntry
fn clone(&self) -> ScoredEntry
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 ScoredEntry
impl Debug for ScoredEntry
Source§impl<'de> Deserialize<'de> for ScoredEntry
impl<'de> Deserialize<'de> for ScoredEntry
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
Auto Trait Implementations§
impl Freeze for ScoredEntry
impl RefUnwindSafe for ScoredEntry
impl Send for ScoredEntry
impl Sync for ScoredEntry
impl Unpin for ScoredEntry
impl UnsafeUnpin for ScoredEntry
impl UnwindSafe for ScoredEntry
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