pub struct SearchInfo {
pub complete: bool,
pub total_hits: Option<usize>,
pub suggestion: Option<String>,
pub rewritten_query: Option<String>,
pub query: String,
pub language: Language,
}Expand description
Contains general informations about the search
Fields§
§complete: boolWhether the search is complete and no more results are available
total_hits: Option<usize>Optional: Total amount of results found
suggestion: Option<String>Optional: Suggestion for a different query
rewritten_query: Option<String>Optional: The query rewritten by the search backend (See SearchBuilder::rewrites for
more)
query: StringSearched value
language: LanguageIn what language the search was made
Trait Implementations§
Source§impl Clone for SearchInfo
impl Clone for SearchInfo
Source§fn clone(&self) -> SearchInfo
fn clone(&self) -> SearchInfo
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 SearchInfo
impl Debug for SearchInfo
Source§impl<'de> Deserialize<'de> for SearchInfo
impl<'de> Deserialize<'de> for SearchInfo
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
Source§impl PartialEq for SearchInfo
impl PartialEq for SearchInfo
Source§impl Serialize for SearchInfo
impl Serialize for SearchInfo
impl Eq for SearchInfo
impl StructuralPartialEq for SearchInfo
Auto Trait Implementations§
impl Freeze for SearchInfo
impl RefUnwindSafe for SearchInfo
impl Send for SearchInfo
impl Sync for SearchInfo
impl Unpin for SearchInfo
impl UnwindSafe for SearchInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.