Struct meilisearch_sdk::search::SearchResult
source · pub struct SearchResult<T> {
pub result: T,
pub formatted_result: Option<Map<String, Value>>,
pub matches_position: Option<HashMap<String, Vec<MatchRange>>>,
pub ranking_score: Option<f64>,
pub ranking_score_details: Option<Map<String, Value>>,
}Expand description
A single result.
Contains the complete object, optionally the formatted object, and optionally an object that contains information about the matches.
Fields§
§result: TThe full result.
formatted_result: Option<Map<String, Value>>The formatted result.
matches_position: Option<HashMap<String, Vec<MatchRange>>>The object that contains information about the matches.
ranking_score: Option<f64>The relevancy score of the match.
ranking_score_details: Option<Map<String, Value>>Trait Implementations§
source§impl<T: Clone> Clone for SearchResult<T>
impl<T: Clone> Clone for SearchResult<T>
source§fn clone(&self) -> SearchResult<T>
fn clone(&self) -> SearchResult<T>
Returns a copy 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<T: Debug> Debug for SearchResult<T>
impl<T: Debug> Debug for SearchResult<T>
source§impl<'de, T> Deserialize<'de> for SearchResult<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for SearchResult<T>where
T: Deserialize<'de>,
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<T> Freeze for SearchResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for SearchResult<T>where
T: RefUnwindSafe,
impl<T> Send for SearchResult<T>where
T: Send,
impl<T> Sync for SearchResult<T>where
T: Sync,
impl<T> Unpin for SearchResult<T>where
T: Unpin,
impl<T> UnwindSafe for SearchResult<T>where
T: UnwindSafe,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more