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 {
119119 /// Remove tokens from Meilisearch's default [list of word separators](https://www.meilisearch.com/docs/learn/engine/datatypes#string).
120120 #[ serde( skip_serializing_if = "Option::is_none" ) ]
121121 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 > > ,
122125}
123126
124127#[ allow( missing_docs) ]
@@ -343,6 +346,17 @@ impl Settings {
343346 ..self
344347 }
345348 }
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+ }
346360}
347361
348362impl < Http : HttpClient > Index < Http > {
You can’t perform that action at this time.
0 commit comments