pub struct SearchSynonym {
pub root: Option<String>,
pub synonyms: Vec<String>,
pub locale: Option<String>,
pub symbols_to_index: Option<Vec<String>>,
pub id: String,
}Fields§
§root: Option<String>For 1-way synonyms, indicates the root word that words in the synonyms parameter map to.
synonyms: Vec<String>Array of words that should be considered as synonyms.
locale: Option<String>Locale for the synonym, leave blank to use the standard tokenizer.
symbols_to_index: Option<Vec<String>>By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is.
id: StringImplementations§
Source§impl SearchSynonym
impl SearchSynonym
Trait Implementations§
Source§impl Clone for SearchSynonym
impl Clone for SearchSynonym
Source§fn clone(&self) -> SearchSynonym
fn clone(&self) -> SearchSynonym
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SearchSynonym
impl Debug for SearchSynonym
Source§impl Default for SearchSynonym
impl Default for SearchSynonym
Source§fn default() -> SearchSynonym
fn default() -> SearchSynonym
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SearchSynonym
impl<'de> Deserialize<'de> for SearchSynonym
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchSynonym, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchSynonym, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SearchSynonym
impl PartialEq for SearchSynonym
Source§fn eq(&self, other: &SearchSynonym) -> bool
fn eq(&self, other: &SearchSynonym) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SearchSynonym
impl Serialize for SearchSynonym
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SearchSynonym
Auto Trait Implementations§
impl Freeze for SearchSynonym
impl RefUnwindSafe for SearchSynonym
impl Send for SearchSynonym
impl Sync for SearchSynonym
impl Unpin for SearchSynonym
impl UnsafeUnpin for SearchSynonym
impl UnwindSafe for SearchSynonym
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more