#[repr(i32)]pub enum CompletionType {
Unspecified = 0,
JobTitle = 1,
CompanyName = 2,
Combined = 3,
}
Expand description
Enum to specify auto-completion topics.
Variants§
Unspecified = 0
Default value.
JobTitle = 1
Suggest job titles for jobs autocomplete.
For [CompletionType.JOB_TITLE][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.JOB_TITLE] type, only open jobs with the same [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] are returned.
CompanyName = 2
Suggest company names for jobs autocomplete.
For [CompletionType.COMPANY_NAME][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMPANY_NAME] type, only companies having open jobs with the same [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] are returned.
Combined = 3
Suggest both job titles and company names for jobs autocomplete.
For [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED] type, only open jobs with the same [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] or companies having open jobs with the same [language_codes][google.cloud.talent.v4.CompleteQueryRequest.language_codes] are returned.
Implementations§
source§impl CompletionType
impl CompletionType
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 CompletionType
impl Clone for CompletionType
source§fn clone(&self) -> CompletionType
fn clone(&self) -> CompletionType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CompletionType
impl Debug for CompletionType
source§impl Default for CompletionType
impl Default for CompletionType
source§fn default() -> CompletionType
fn default() -> CompletionType
source§impl From<CompletionType> for i32
impl From<CompletionType> for i32
source§fn from(value: CompletionType) -> i32
fn from(value: CompletionType) -> i32
source§impl Hash for CompletionType
impl Hash for CompletionType
source§impl Ord for CompletionType
impl Ord for CompletionType
source§fn cmp(&self, other: &CompletionType) -> Ordering
fn cmp(&self, other: &CompletionType) -> 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 CompletionType
impl PartialEq for CompletionType
source§fn eq(&self, other: &CompletionType) -> bool
fn eq(&self, other: &CompletionType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompletionType
impl PartialOrd for CompletionType
source§fn partial_cmp(&self, other: &CompletionType) -> Option<Ordering>
fn partial_cmp(&self, other: &CompletionType) -> 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 CompletionType
impl TryFrom<i32> for CompletionType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CompletionType, DecodeError>
fn try_from(value: i32) -> Result<CompletionType, DecodeError>
impl Copy for CompletionType
impl Eq for CompletionType
impl StructuralPartialEq for CompletionType
Auto Trait Implementations§
impl Freeze for CompletionType
impl RefUnwindSafe for CompletionType
impl Send for CompletionType
impl Sync for CompletionType
impl Unpin for CompletionType
impl UnwindSafe for CompletionType
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