pub struct PushRequest {
    pub dest: ObjDest,
    pub text: String,
    pub lang: Option<Lang>,
}
Expand description

Parameters for the push command.

Fields

dest: ObjDest

Collection, bucket and object where we should push search data in the index.

text: String

Search data to be added

lang: Option<Lang>

Language of the search data. If None, the client will try to determine based on the text.

Implementations

Creates a base push request

Set a language for the request.

Trait Implementations

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

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

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.