Name Description Size
benchmarks
bin
config.rs 1099
db.rs 48041
error.rs 3299
keyword.rs 3257
lib.rs 992
pocket.rs 1828
provider.rs 3545
query.rs 2482
rs.rs Crate-internal types for interacting with Remote Settings (`rs`). Types in this module describe records and attachments in the Suggest Remote Settings collection. To add a new suggestion `T` to this component, you'll generally need to: 1. Add a variant named `T` to [`SuggestRecord`]. The variant must have a `#[serde(rename)]` attribute that matches the suggestion record's `type` field. 2. Define a `DownloadedTSuggestion` type with the new suggestion's fields, matching their attachment's schema. Your new type must derive or implement [`serde::Deserialize`]. 3. Update the database schema in the [`schema`] module to store the new suggestion. 4. Add an `insert_t_suggestions()` method to [`db::SuggestDao`] that inserts `DownloadedTSuggestion`s into the database. 5. Update [`store::SuggestStoreInner::ingest()`] to download, deserialize, and store the new suggestion. 6. Add a variant named `T` to [`suggestion::Suggestion`], with the fields that you'd like to expose to the application. These can be the same fields as `DownloadedTSuggestion`, or slightly different, depending on what the application needs to show the suggestion. 7. Update the `Suggestion` enum definition in `suggest.udl` to match your new [`suggestion::Suggestion`] variant. 8. Update any [`db::SuggestDao`] methods that query the database to include the new suggestion in their results, and return `Suggestion::T` variants as needed. 22669
schema.rs 10162
store.rs 124391
suggest.udl 4377
suggestion.rs 9307
testing
yelp.rs 18230