Struct meilisearch_sdk::search::SearchResult[][src]

pub struct SearchResult<T> {
    pub result: T,
    pub formatted_result: Option<T>,
    pub matches_info: Option<HashMap<String, Vec<MatchRange>>>,
}
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: T

The full result.

formatted_result: Option<T>

The formatted result.

matches_info: Option<HashMap<String, Vec<MatchRange>>>

The object that contains information about the matches.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more