pub struct ReverseFilter {
    pub radius: Option<u64>,
    pub limit: Option<u64>,
    pub lang: Option<String>,
    pub layer: Option<Vec<PhotonLayer>>,
    pub additional_query: Option<Vec<(String, String)>>,
}
Expand description

Filtering options for reverse searches. This struct implements a builder pattern, so filters can be easily constructed.

Fields

radius: Option<u64>limit: Option<u64>lang: Option<String>layer: Option<Vec<PhotonLayer>>additional_query: Option<Vec<(String, String)>>

Implementations

Construct a new ReverseFilter. All fields are set to None in the beginning.

Limit the number of search results.

Return results in a specific language. Photon currently supports DE, EN and FR. Defaults to the local language of a search result.

Filter results by layer. See Photon documentation

Add additional query strings to the request. Example: Filtering by tags and values

Trait Implementations

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

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

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.
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