Struct elastiql::search::Hits[][src]

pub struct Hits<T> {
    pub total_count: Count,
    pub max_score: Option<f32>,
    pub hits: Vec<Hit<T>>,
}
Expand description

The hits/matches from performing a Elasticsearch search.

Fields

total_count: Count

The total count of the hits/matches.

max_score: Option<f32>

The maximum score for any of the hits/matches.

hits: Vec<Hit<T>>

The search hits.

Implementations

Gets the first document’s source (if any).

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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.

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.