pub enum Action {
BoostAction(BoostAction),
RedirectAction(RedirectAction),
OnewaySynonymsAction(OnewaySynonymsAction),
DoNotAssociateAction(DoNotAssociateAction),
ReplacementAction(ReplacementAction),
IgnoreAction(IgnoreAction),
FilterAction(FilterAction),
TwowaySynonymsAction(TwowaySynonymsAction),
ForceReturnFacetAction(ForceReturnFacetAction),
RemoveFacetAction(RemoveFacetAction),
}
Expand description
An action must be provided.
Variants§
BoostAction(BoostAction)
A boost action.
RedirectAction(RedirectAction)
Redirects a shopper to a specific page.
OnewaySynonymsAction(OnewaySynonymsAction)
Treats specific term as a synonym with a group of terms. Group of terms will not be treated as synonyms with the specific term.
DoNotAssociateAction(DoNotAssociateAction)
Prevents term from being associated with other terms.
ReplacementAction(ReplacementAction)
Replaces specific terms in the query.
IgnoreAction(IgnoreAction)
Ignores specific terms from query during search.
FilterAction(FilterAction)
Filters results.
TwowaySynonymsAction(TwowaySynonymsAction)
Treats a set of terms as synonyms of one another.
ForceReturnFacetAction(ForceReturnFacetAction)
Force returns an attribute as a facet in the request.
RemoveFacetAction(RemoveFacetAction)
Remove an attribute as a facet in the request (if present).
Implementations§
source§impl Action
impl Action
sourcepub fn merge(
field: &mut Option<Action>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Action>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl PartialEq for Action
impl PartialEq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request