Struct meilisearch_sdk::search::SearchResults [−][src]
pub struct SearchResults<T> {
pub hits: Vec<SearchResult<T>>,
pub offset: usize,
pub limit: usize,
pub nb_hits: usize,
pub exhaustive_nb_hits: bool,
pub facets_distribution: Option<HashMap<String, HashMap<String, usize>>>,
pub exhaustive_facets_count: Option<bool>,
pub processing_time_ms: usize,
pub query: String,
}A struct containing search results and other information about the search.
Fields
hits: Vec<SearchResult<T>>Results of the query
offset: usizeNumber of documents skipped
limit: usizeNumber of results returned
nb_hits: usizeTotal number of matches
exhaustive_nb_hits: boolWhether nb_hits is exhaustive
facets_distribution: Option<HashMap<String, HashMap<String, usize>>>Distribution of the given facets
exhaustive_facets_count: Option<bool>Whether facet_distribution is exhaustive
processing_time_ms: usizeProcessing time of the query
query: StringQuery originating the response
Trait Implementations
impl<'de, T> Deserialize<'de> for SearchResults<T> where
T: Deserialize<'de>, [src]
impl<'de, T> Deserialize<'de> for SearchResults<T> where
T: Deserialize<'de>, [src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<T> RefUnwindSafe for SearchResults<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for SearchResults<T> where
T: RefUnwindSafe, impl<T> Send for SearchResults<T> where
T: Send,
impl<T> Send for SearchResults<T> where
T: Send, impl<T> Sync for SearchResults<T> where
T: Sync,
impl<T> Sync for SearchResults<T> where
T: Sync, impl<T> Unpin for SearchResults<T> where
T: Unpin,
impl<T> Unpin for SearchResults<T> where
T: Unpin, impl<T> UnwindSafe for SearchResults<T> where
T: UnwindSafe,
impl<T> UnwindSafe for SearchResults<T> where
T: UnwindSafe, Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> WithSubscriber for T[src]
impl<T> WithSubscriber for T[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,