#[non_exhaustive]pub struct SynonymsAction {
pub synonyms: Vec<String>,
/* private fields */
}Available on crate feature
control-service only.Expand description
Creates a set of terms that will act as synonyms of one another.
Example: “happy” will also be considered as “glad”, “glad” will also be considered as “happy”.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.synonyms: Vec<String>Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.
Implementations§
Source§impl SynonymsAction
impl SynonymsAction
pub fn new() -> Self
Sourcepub fn set_synonyms<T, V>(self, v: T) -> Self
pub fn set_synonyms<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SynonymsAction
impl Clone for SynonymsAction
Source§fn clone(&self) -> SynonymsAction
fn clone(&self) -> SynonymsAction
Returns a duplicate of the value. Read more
1.0.0 · 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 SynonymsAction
impl Debug for SynonymsAction
Source§impl Default for SynonymsAction
impl Default for SynonymsAction
Source§fn default() -> SynonymsAction
fn default() -> SynonymsAction
Returns the “default value” for a type. Read more
Source§impl Message for SynonymsAction
impl Message for SynonymsAction
Source§impl PartialEq for SynonymsAction
impl PartialEq for SynonymsAction
impl StructuralPartialEq for SynonymsAction
Auto Trait Implementations§
impl Freeze for SynonymsAction
impl RefUnwindSafe for SynonymsAction
impl Send for SynonymsAction
impl Sync for SynonymsAction
impl Unpin for SynonymsAction
impl UnwindSafe for SynonymsAction
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