#[non_exhaustive]pub struct DoNotAssociateAction {
pub query_terms: Vec<String>,
pub do_not_associate_terms: Vec<String>,
pub terms: Vec<String>,
/* private fields */
}Expand description
Prevents query_term from being associated with specified terms during
search.
Example: Don’t associate “gShoe” and “cheap”.
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.query_terms: Vec<String>Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.
do_not_associate_terms: Vec<String>Cannot contain duplicates or the query term. Can specify up to 100 terms.
terms: Vec<String>Will be [deprecated = true] post migration;
Implementations§
Source§impl DoNotAssociateAction
impl DoNotAssociateAction
pub fn new() -> Self
Sourcepub fn set_query_terms<T, V>(self, v: T) -> Self
pub fn set_query_terms<T, V>(self, v: T) -> Self
Sets the value of query_terms.
§Example
ⓘ
let x = DoNotAssociateAction::new().set_query_terms(["a", "b", "c"]);Sourcepub fn set_do_not_associate_terms<T, V>(self, v: T) -> Self
pub fn set_do_not_associate_terms<T, V>(self, v: T) -> Self
Sets the value of do_not_associate_terms.
§Example
ⓘ
let x = DoNotAssociateAction::new().set_do_not_associate_terms(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for DoNotAssociateAction
impl Clone for DoNotAssociateAction
Source§fn clone(&self) -> DoNotAssociateAction
fn clone(&self) -> DoNotAssociateAction
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 DoNotAssociateAction
impl Debug for DoNotAssociateAction
Source§impl Default for DoNotAssociateAction
impl Default for DoNotAssociateAction
Source§fn default() -> DoNotAssociateAction
fn default() -> DoNotAssociateAction
Returns the “default value” for a type. Read more
Source§impl Message for DoNotAssociateAction
impl Message for DoNotAssociateAction
Source§impl PartialEq for DoNotAssociateAction
impl PartialEq for DoNotAssociateAction
impl StructuralPartialEq for DoNotAssociateAction
Auto Trait Implementations§
impl Freeze for DoNotAssociateAction
impl RefUnwindSafe for DoNotAssociateAction
impl Send for DoNotAssociateAction
impl Sync for DoNotAssociateAction
impl Unpin for DoNotAssociateAction
impl UnwindSafe for DoNotAssociateAction
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