pub trait SearchEntry {
type Id: Eq;
// Required method
fn id(&self) -> &Self::Id;
// Provided methods
fn score(&self) -> Score { ... }
fn to_entry(&self) -> EntryInfo<Self::Id>
where Self::Id: Clone { ... }
}
Expand description
A search result entry with a unique document identifier and a similarity score. Types need to implement this type in order to be admitted as a search result.