pub struct GoogleCloudRetailV2Rule {
pub boost_action: Option<GoogleCloudRetailV2RuleBoostAction>,
pub condition: Option<GoogleCloudRetailV2Condition>,
pub do_not_associate_action: Option<GoogleCloudRetailV2RuleDoNotAssociateAction>,
pub filter_action: Option<GoogleCloudRetailV2RuleFilterAction>,
pub force_return_facet_action: Option<GoogleCloudRetailV2RuleForceReturnFacetAction>,
pub ignore_action: Option<GoogleCloudRetailV2RuleIgnoreAction>,
pub oneway_synonyms_action: Option<GoogleCloudRetailV2RuleOnewaySynonymsAction>,
pub pin_action: Option<GoogleCloudRetailV2RulePinAction>,
pub redirect_action: Option<GoogleCloudRetailV2RuleRedirectAction>,
pub remove_facet_action: Option<GoogleCloudRetailV2RuleRemoveFacetAction>,
pub replacement_action: Option<GoogleCloudRetailV2RuleReplacementAction>,
pub twoway_synonyms_action: Option<GoogleCloudRetailV2RuleTwowaySynonymsAction>,
}Expand description
A rule is a condition-action pair * A condition defines when a rule is to be triggered. * An action specifies what occurs on that trigger. Currently rules only work for controls with SOLUTION_TYPE_SEARCH.
This type is not used in any activity, and only used as part of another schema.
Fields§
§boost_action: Option<GoogleCloudRetailV2RuleBoostAction>A boost action.
condition: Option<GoogleCloudRetailV2Condition>Required. The condition that triggers the rule. If the condition is empty, the rule will always apply.
do_not_associate_action: Option<GoogleCloudRetailV2RuleDoNotAssociateAction>Prevents term from being associated with other terms.
filter_action: Option<GoogleCloudRetailV2RuleFilterAction>Filters results.
force_return_facet_action: Option<GoogleCloudRetailV2RuleForceReturnFacetAction>Force returns an attribute as a facet in the request.
ignore_action: Option<GoogleCloudRetailV2RuleIgnoreAction>Ignores specific terms from query during search.
oneway_synonyms_action: Option<GoogleCloudRetailV2RuleOnewaySynonymsAction>Treats specific term as a synonym with a group of terms. Group of terms will not be treated as synonyms with the specific term.
pin_action: Option<GoogleCloudRetailV2RulePinAction>Pins one or more specified products to a specific position in the results.
redirect_action: Option<GoogleCloudRetailV2RuleRedirectAction>Redirects a shopper to a specific page.
remove_facet_action: Option<GoogleCloudRetailV2RuleRemoveFacetAction>Remove an attribute as a facet in the request (if present).
replacement_action: Option<GoogleCloudRetailV2RuleReplacementAction>Replaces specific terms in the query.
twoway_synonyms_action: Option<GoogleCloudRetailV2RuleTwowaySynonymsAction>Treats a set of terms as synonyms of one another.
Trait Implementations§
Source§impl Clone for GoogleCloudRetailV2Rule
impl Clone for GoogleCloudRetailV2Rule
Source§fn clone(&self) -> GoogleCloudRetailV2Rule
fn clone(&self) -> GoogleCloudRetailV2Rule
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more