Enum google_api_proto::google::cloud::talent::v4::search_jobs_request::custom_ranking_info::ImportanceLevel
source · #[repr(i32)]pub enum ImportanceLevel {
Unspecified = 0,
None = 1,
Low = 2,
Mild = 3,
Medium = 4,
High = 5,
Extreme = 6,
}
Expand description
The importance level for [CustomRankingInfo.ranking_expression][google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ranking_expression].
Variants§
Unspecified = 0
Default value if the importance level isn’t specified.
None = 1
The given ranking expression is of None importance, existing relevance score (determined by API algorithm) dominates job’s final ranking position.
Low = 2
The given ranking expression is of Low importance in terms of job’s final ranking position compared to existing relevance score (determined by API algorithm).
Mild = 3
The given ranking expression is of Mild importance in terms of job’s final ranking position compared to existing relevance score (determined by API algorithm).
Medium = 4
The given ranking expression is of Medium importance in terms of job’s final ranking position compared to existing relevance score (determined by API algorithm).
High = 5
The given ranking expression is of High importance in terms of job’s final ranking position compared to existing relevance score (determined by API algorithm).
Extreme = 6
The given ranking expression is of Extreme importance, and dominates job’s final ranking position with existing relevance score (determined by API algorithm) ignored.
Implementations§
source§impl ImportanceLevel
impl ImportanceLevel
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 ImportanceLevel
impl Clone for ImportanceLevel
source§fn clone(&self) -> ImportanceLevel
fn clone(&self) -> ImportanceLevel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImportanceLevel
impl Debug for ImportanceLevel
source§impl Default for ImportanceLevel
impl Default for ImportanceLevel
source§fn default() -> ImportanceLevel
fn default() -> ImportanceLevel
source§impl From<ImportanceLevel> for i32
impl From<ImportanceLevel> for i32
source§fn from(value: ImportanceLevel) -> i32
fn from(value: ImportanceLevel) -> i32
source§impl Hash for ImportanceLevel
impl Hash for ImportanceLevel
source§impl Ord for ImportanceLevel
impl Ord for ImportanceLevel
source§fn cmp(&self, other: &ImportanceLevel) -> Ordering
fn cmp(&self, other: &ImportanceLevel) -> 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 ImportanceLevel
impl PartialEq for ImportanceLevel
source§fn eq(&self, other: &ImportanceLevel) -> bool
fn eq(&self, other: &ImportanceLevel) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ImportanceLevel
impl PartialOrd for ImportanceLevel
source§fn partial_cmp(&self, other: &ImportanceLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &ImportanceLevel) -> 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 ImportanceLevel
impl TryFrom<i32> for ImportanceLevel
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<ImportanceLevel, DecodeError>
fn try_from(value: i32) -> Result<ImportanceLevel, DecodeError>
impl Copy for ImportanceLevel
impl Eq for ImportanceLevel
impl StructuralPartialEq for ImportanceLevel
Auto Trait Implementations§
impl Freeze for ImportanceLevel
impl RefUnwindSafe for ImportanceLevel
impl Send for ImportanceLevel
impl Sync for ImportanceLevel
impl Unpin for ImportanceLevel
impl UnwindSafe for ImportanceLevel
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