mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-17 11:50:51 +00:00
Better document why we duplicate structs
This commit is contained in:
@ -2021,6 +2021,8 @@ pub struct PrefixSettings {
|
||||
pub compute_prefixes: PrefixSearch,
|
||||
}
|
||||
|
||||
/// This is unfortunately a duplication of the struct in <meilisearch/src/search/mod.rs>.
|
||||
/// The reason why it is duplicated is because milli cannot depend on meilisearch. It would be cyclic imports.
|
||||
#[derive(Default, Debug, Copy, Clone, PartialEq, Eq, Deserr, ToSchema, Serialize, Deserialize)]
|
||||
#[deserr(rename_all = camelCase)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
|
Reference in New Issue
Block a user