pub struct SearchResults {
pub total_hits: u64,
pub max_score: Option<f64>,
pub hits: Vec<SearchHit>,
pub aggregations: HashMap<String, Value>,
pub facets: HashMap<String, FacetResult>,
pub suggestions: Vec<Suggestion>,
pub metadata: SearchMetadata,
}Expand description
Search result
Fields§
§total_hits: u64Total number of hits
max_score: Option<f64>Maximum score
hits: Vec<SearchHit>Documents
aggregations: HashMap<String, Value>Aggregations
facets: HashMap<String, FacetResult>Facets
suggestions: Vec<Suggestion>Suggestions
metadata: SearchMetadataSearch metadata
Trait Implementations§
Source§impl Clone for SearchResults
impl Clone for SearchResults
Source§impl Debug for SearchResults
impl Debug for SearchResults
Source§impl<'de> Deserialize<'de> for SearchResults
impl<'de> Deserialize<'de> for SearchResults
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
Auto Trait Implementations§
impl Freeze for SearchResults
impl RefUnwindSafe for SearchResults
impl Send for SearchResults
impl Sync for SearchResults
impl Unpin for SearchResults
impl UnsafeUnpin 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