pub struct SearchResults {
pub matches: Vec<SearchResult>,
pub closest_below_threshold: Option<SearchResult>,
}
Expand description
Enhanced search results that include near-miss information for threshold queries
Fields§
§matches: Vec<SearchResult>
§closest_below_threshold: Option<SearchResult>
The highest scoring result below the threshold (if any)
Trait Implementations§
Source§impl Clone for SearchResults
impl Clone for SearchResults
Source§fn clone(&self) -> SearchResults
fn clone(&self) -> SearchResults
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SearchResults
impl RefUnwindSafe for SearchResults
impl Send for SearchResults
impl Sync for SearchResults
impl Unpin for SearchResults
impl UnwindSafe for SearchResults
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