Enum google_api_proto::google::cloud::retail::v2::SearchSolutionUseCase
source · #[repr(i32)]pub enum SearchSolutionUseCase {
Unspecified = 0,
Search = 1,
Browse = 2,
}
Expand description
The use case of Cloud Retail Search.
Variants§
Unspecified = 0
The value when it’s unspecified. In this case, server behavior defaults to [SEARCH_SOLUTION_USE_CASE_SEARCH][google.cloud.retail.v2.SearchSolutionUseCase.SEARCH_SOLUTION_USE_CASE_SEARCH].
Search = 1
Search use case. Expects the traffic has a non-empty [query][google.cloud.retail.v2.SearchRequest.query].
Browse = 2
Browse use case. Expects the traffic has an empty [query][google.cloud.retail.v2.SearchRequest.query].
Implementations§
source§impl SearchSolutionUseCase
impl SearchSolutionUseCase
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of SearchSolutionUseCase
.
sourcepub fn from_i32(value: i32) -> Option<SearchSolutionUseCase>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<SearchSolutionUseCase>
Converts an i32
to a SearchSolutionUseCase
, or None
if value
is not a valid variant.
source§impl SearchSolutionUseCase
impl SearchSolutionUseCase
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for SearchSolutionUseCase
impl Clone for SearchSolutionUseCase
source§fn clone(&self) -> SearchSolutionUseCase
fn clone(&self) -> SearchSolutionUseCase
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchSolutionUseCase
impl Debug for SearchSolutionUseCase
source§impl Default for SearchSolutionUseCase
impl Default for SearchSolutionUseCase
source§fn default() -> SearchSolutionUseCase
fn default() -> SearchSolutionUseCase
source§impl From<SearchSolutionUseCase> for i32
impl From<SearchSolutionUseCase> for i32
source§fn from(value: SearchSolutionUseCase) -> i32
fn from(value: SearchSolutionUseCase) -> i32
source§impl Hash for SearchSolutionUseCase
impl Hash for SearchSolutionUseCase
source§impl Ord for SearchSolutionUseCase
impl Ord for SearchSolutionUseCase
source§fn cmp(&self, other: &SearchSolutionUseCase) -> Ordering
fn cmp(&self, other: &SearchSolutionUseCase) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for SearchSolutionUseCase
impl PartialEq for SearchSolutionUseCase
source§fn eq(&self, other: &SearchSolutionUseCase) -> bool
fn eq(&self, other: &SearchSolutionUseCase) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SearchSolutionUseCase
impl PartialOrd for SearchSolutionUseCase
source§fn partial_cmp(&self, other: &SearchSolutionUseCase) -> Option<Ordering>
fn partial_cmp(&self, other: &SearchSolutionUseCase) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for SearchSolutionUseCase
impl TryFrom<i32> for SearchSolutionUseCase
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<SearchSolutionUseCase, UnknownEnumValue>
fn try_from(value: i32) -> Result<SearchSolutionUseCase, UnknownEnumValue>
impl Copy for SearchSolutionUseCase
impl Eq for SearchSolutionUseCase
impl StructuralPartialEq for SearchSolutionUseCase
Auto Trait Implementations§
impl Freeze for SearchSolutionUseCase
impl RefUnwindSafe for SearchSolutionUseCase
impl Send for SearchSolutionUseCase
impl Sync for SearchSolutionUseCase
impl Unpin for SearchSolutionUseCase
impl UnwindSafe for SearchSolutionUseCase
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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