You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
445: Rename `Document` trait to `IndexConfig` and extend with function to retrieve index r=bidoubiwa a=amaihoefner
# Pull Request
## Related issue
Fixes#444
## What does this PR do?
- rename `Document` trait to `IndexConfig`
- add constant `IndexConfig::INDEX_STR` to store name of the index
- add `IndexConfig::index` function to provide easier and safer access to index
## PR checklist
Please check if your PR fulfills the following requirements:
- [ x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)?
- [ x] Have you read the contributing guidelines?
- [ x] Have you made sure that the title is accurate and descriptive of the changes?
Co-authored-by: amaihoefner <[email protected]>
Copy file name to clipboardExpand all lines: src/dumps.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@
6
6
//!
7
7
//! During a [dump export](Client::create_dump), all [indexes](crate::indexes::Index) of the current instance are exported—together with their documents and settings—and saved as a single `.dump` file.
8
8
//!
9
-
//! During a dump import, all indexes contained in the indicated `.dump` file are imported along with their associated [documents](crate::documents::Document) and [settings](crate::settings::Settings).
9
+
//! During a dump import, all indexes contained in the indicated `.dump` file are imported along with their associated documents and [settings](crate::settings::Settings).
10
10
//! Any existing [index](crate::indexes::Index) with the same uid as an index in the dump file will be overwritten.
11
11
//!
12
12
//! Dump imports are [performed at launch](https://docs.meilisearch.com/reference/features/configuration.html#import-dump) using an option.
Copy file name to clipboardExpand all lines: src/lib.rs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -252,7 +252,7 @@ mod utils;
252
252
pubuse client::*;
253
253
254
254
#[cfg(test)]
255
-
/// Support for the `Document` derive proc macro in the crate's tests
255
+
/// Support for the `IndexConfig` derive proc macro in the crate's tests
256
256
externcrate self as meilisearch_sdk;
257
257
/// Can't assume that the user of proc_macro will have access to `async_trait` crate. So exporting the `async-trait` crate from `meilisearch_sdk` in a hidden module.
0 commit comments