pub struct QueryResult { /* private fields */ }
Expand description

Represents results returned when executing a DQL query containing a QueryResultItem for each match.

Note: More info such as metrics, affected document IDs, etc. will be provided in the near future.

Implementations

Get the QueryResultItem at the given index. Return None if out of bounds.

Return the number of available QueryResultItem.

IDs of documents that were mutated by the DQL query. Empty array if no documents have been mutated.

Important: The returned document IDs are not cached, make sure to call this method once and keep the return value for as long as needed.

Trait Implementations

Converts to this type from the input type.
Which kind of iterator are we turning this into?
The type of the elements being iterated over.
Creates an iterator from a value. 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
Applies the [Compat] adapter by value. Read more
Applies the [Compat] adapter by shared reference. Read more
Applies the [Compat] adapter by mutable reference. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts to T by calling Into<T>::into.
Tries to convert to T by calling TryInto<T>::try_into.
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.