pub struct SearchResult {
pub entities: Vec<Entity>,
pub query: String,
pub deep_search_used: bool,
pub query_variations: Vec<String>,
}Expand description
Result from a search operation.
Contains the matched entities along with metadata about the search.
Fields§
§entities: Vec<Entity>The matched entities, sorted by relevance.
query: StringThe original query.
deep_search_used: boolWhether deep search was actually used.
query_variations: Vec<String>Query variations used (includes original if deep search was used).
Implementations§
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
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 moreSource§impl Debug for SearchResult
impl Debug for SearchResult
Auto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnwindSafe for SearchResult
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