File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ pub struct Settings {
119
119
/// Remove tokens from Meilisearch's default [list of word separators](https://www.meilisearch.com/docs/learn/engine/datatypes#string).
120
120
#[ serde( skip_serializing_if = "Option::is_none" ) ]
121
121
pub non_separator_tokens : Option < Vec < String > > ,
122
+ /// LocalizedAttributes settings.
123
+ #[ serde( skip_serializing_if = "Option::is_none" ) ]
124
+ pub localized_attributes : Option < Vec < LocalizedAttributes > > ,
122
125
}
123
126
124
127
#[ allow( missing_docs) ]
@@ -343,6 +346,17 @@ impl Settings {
343
346
..self
344
347
}
345
348
}
349
+
350
+ #[ must_use]
351
+ pub fn with_localized_attributes (
352
+ self ,
353
+ localized_attributes : impl IntoIterator < Item = LocalizedAttributes > ,
354
+ ) -> Settings {
355
+ Settings {
356
+ localized_attributes : Some ( localized_attributes. into_iter ( ) . collect ( ) ) ,
357
+ ..self
358
+ }
359
+ }
346
360
}
347
361
348
362
impl < Http : HttpClient > Index < Http > {
You can’t perform that action at this time.
0 commit comments