Enum googapis::google::cloud::retail::v2alpha::search_request::SearchMode [−][src]
#[repr(i32)]
pub enum SearchMode {
Unspecified,
ProductSearchOnly,
FacetedSearchOnly,
}
Expand description
The search mode of each search request.
Variants
Default value. In this case both product search and faceted search will be performed. Both [SearchResponse.SearchResult] and [SearchResponse.Facet] will be returned.
Only product search will be performed. The faceted search will be disabled.
Only [SearchResponse.SearchResult] will be returned. [SearchResponse.Facet] will not be returned, even if [SearchRequest.facet_specs][google.cloud.retail.v2alpha.SearchRequest.facet_specs] or [SearchRequest.dynamic_facet_spec][google.cloud.retail.v2alpha.SearchRequest.dynamic_facet_spec] is set.
Only faceted search will be performed. The product search will be disabled.
When in this mode, one or both of [SearchRequest.facet_spec][] and [SearchRequest.dynamic_facet_spec][google.cloud.retail.v2alpha.SearchRequest.dynamic_facet_spec] should be set. Otherwise, an INVALID_ARGUMENT error is returned. Only [SearchResponse.Facet] will be returned. [SearchResponse.SearchResult] will not be returned.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SearchMode
impl Send for SearchMode
impl Sync for SearchMode
impl Unpin for SearchMode
impl UnwindSafe for SearchMode
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more