Expand description

Suggestion backends for Merino.

Modules

Data structures that model information about a requester’s device. Device form factor, operating system, and browser are captured.

domain 🔒

Datatypes to better represent the domain of Merino.

Additional tools for recording metrics from suggestion providers.

Structs

A basic provider that never returns any suggestions.

Represents a value from 0.0 to 1.0, inclusive. That is: a portion of something that cannot be negative or exceed 100%.

A suggestion to provide to a user.

A request for suggestions.

A response of suggestions, along with related metadata.

Languages supported by the client.

Enums

The relation between an object and a cache.

Errors that may occur while setting up the provider.

Errors that may occur while querying for suggestions.

Constants

A provider that never provides any suggestions. The range of major Firefox version numbers to use for testing.

Traits

Gathers inputs to be hashed to determine a cache key.

A backend that can provide suggestions for queries.

Functions

Convert a serde_json::Value into an appropriate provider configuration object.

Helper to generate a URL to use for testing, of the form “https://example.com/fake#some-random-words”.

Reconfigure the passed provider, or if there is a problem reconfiguring it, replace it with a newly created provider.

Type Definitions

A type that represents an object-safe function that can be passed to suggestion reconfigure methods to make new inner providers.