Struct google_api_proto::google::cloud::retail::v2beta::rule::RemoveFacetAction
source · pub struct RemoveFacetAction {
pub attribute_names: Vec<String>,
}
Expand description
Removes an attribute/facet in the request if is present.
-
Rule Condition: Must specify non-empty [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] (for search only) or [Condition.page_categories][google.cloud.retail.v2beta.Condition.page_categories] (for browse only), but can’t specify both.
-
Action Input: attribute name
-
Action Result: Will remove the attribute (as a facet) from the request if it is present.
Example: Suppose the query is “shoes”, the [Condition.query_terms][google.cloud.retail.v2beta.Condition.query_terms] is “shoes” and the attribute name “size”, then facet key “size” will be removed from the request (if it is present).
Fields§
§attribute_names: Vec<String>
The attribute names (i.e. facet keys) to remove from the dynamic facets (if present in the request). There can’t be more 3 attribute names. Each attribute name should be a valid attribute name, be non-empty and contain at most 80 characters.
Trait Implementations§
source§impl Clone for RemoveFacetAction
impl Clone for RemoveFacetAction
source§fn clone(&self) -> RemoveFacetAction
fn clone(&self) -> RemoveFacetAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RemoveFacetAction
impl Debug for RemoveFacetAction
source§impl Default for RemoveFacetAction
impl Default for RemoveFacetAction
source§impl Message for RemoveFacetAction
impl Message for RemoveFacetAction
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for RemoveFacetAction
impl PartialEq for RemoveFacetAction
source§fn eq(&self, other: &RemoveFacetAction) -> bool
fn eq(&self, other: &RemoveFacetAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RemoveFacetAction
Auto Trait Implementations§
impl Freeze for RemoveFacetAction
impl RefUnwindSafe for RemoveFacetAction
impl Send for RemoveFacetAction
impl Sync for RemoveFacetAction
impl Unpin for RemoveFacetAction
impl UnwindSafe for RemoveFacetAction
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
§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>
T
in a tonic::Request