pub struct CurationRule {
pub tags: Option<Vec<String>>,
pub query: Option<String>,
pub match: Option<Match>,
pub filter_by: Option<String>,
}Fields§
List of tag values to associate with this curation rule.
query: Option<String>Indicates what search queries should be curated
match: Option<Match>Indicates whether the match on the query term should be exact or contains. If we want to match all queries that contained the word apple, we will use the contains match instead.
filter_by: Option<String>Indicates that the curation should apply when the filter_by parameter in a search query exactly matches the string specified here (including backticks, spaces, brackets, etc).
Implementations§
Source§impl CurationRule
impl CurationRule
pub fn new() -> CurationRule
Trait Implementations§
Source§impl Clone for CurationRule
impl Clone for CurationRule
Source§fn clone(&self) -> CurationRule
fn clone(&self) -> CurationRule
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 CurationRule
impl Debug for CurationRule
Source§impl Default for CurationRule
impl Default for CurationRule
Source§fn default() -> CurationRule
fn default() -> CurationRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CurationRule
impl<'de> Deserialize<'de> for CurationRule
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CurationRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CurationRule, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CurationRule
impl PartialEq for CurationRule
Source§fn eq(&self, other: &CurationRule) -> bool
fn eq(&self, other: &CurationRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CurationRule
impl Serialize for CurationRule
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 CurationRule
Auto Trait Implementations§
impl Freeze for CurationRule
impl RefUnwindSafe for CurationRule
impl Send for CurationRule
impl Sync for CurationRule
impl Unpin for CurationRule
impl UnsafeUnpin for CurationRule
impl UnwindSafe for CurationRule
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