#[repr(i32)]pub enum DiversificationLevel {
Unspecified = 0,
Disabled = 1,
Simple = 2,
OnePerCompany = 3,
TwoPerCompany = 4,
MaxThreePerCompany = 6,
DiversifyByLooserSimilarity = 5,
}
Expand description
Controls whether highly similar jobs are returned next to each other in the search results. Jobs are identified as highly similar based on their titles, job categories, and locations. Highly similar results are clustered so that only one representative job of the cluster is displayed to the job seeker higher up in the results, with the other jobs being displayed lower down in the results.
If you are using pageToken to page through the result set, latency might be lower but we can’t guarantee that all results are returned. If you are using page offset, latency might be higher but all results are returned.
Variants§
Unspecified = 0
The diversification level isn’t specified.
Disabled = 1
Disables diversification. Jobs that would normally be pushed to the last page would not have their positions altered. This may result in highly similar jobs appearing in sequence in the search results.
Simple = 2
Default diversifying behavior. The result list is ordered so that highly similar results are pushed to the end of the last page of search results.
OnePerCompany = 3
Only one job from the same company will be shown at once, other jobs under same company are pushed to the end of the last page of search result.
TwoPerCompany = 4
Similar to ONE_PER_COMPANY, but it allows at most two jobs in the same company to be shown at once, the other jobs under same company are pushed to the end of the last page of search result.
MaxThreePerCompany = 6
Similar to ONE_PER_COMPANY, but it allows at most three jobs in the same company to be shown at once, the other jobs under same company are dropped.
DiversifyByLooserSimilarity = 5
The result list is ordered such that somewhat similar results are pushed to the end of the last page of the search results. This option is recommended if SIMPLE diversification does not diversify enough.
Implementations§
source§impl DiversificationLevel
impl DiversificationLevel
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of DiversificationLevel
.
sourcepub fn from_i32(value: i32) -> Option<DiversificationLevel>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<DiversificationLevel>
Converts an i32
to a DiversificationLevel
, or None
if value
is not a valid variant.
source§impl DiversificationLevel
impl DiversificationLevel
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 DiversificationLevel
impl Clone for DiversificationLevel
source§fn clone(&self) -> DiversificationLevel
fn clone(&self) -> DiversificationLevel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DiversificationLevel
impl Debug for DiversificationLevel
source§impl Default for DiversificationLevel
impl Default for DiversificationLevel
source§fn default() -> DiversificationLevel
fn default() -> DiversificationLevel
source§impl From<DiversificationLevel> for i32
impl From<DiversificationLevel> for i32
source§fn from(value: DiversificationLevel) -> i32
fn from(value: DiversificationLevel) -> i32
source§impl Hash for DiversificationLevel
impl Hash for DiversificationLevel
source§impl Ord for DiversificationLevel
impl Ord for DiversificationLevel
source§fn cmp(&self, other: &DiversificationLevel) -> Ordering
fn cmp(&self, other: &DiversificationLevel) -> 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 DiversificationLevel
impl PartialEq for DiversificationLevel
source§fn eq(&self, other: &DiversificationLevel) -> bool
fn eq(&self, other: &DiversificationLevel) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DiversificationLevel
impl PartialOrd for DiversificationLevel
source§fn partial_cmp(&self, other: &DiversificationLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &DiversificationLevel) -> 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 DiversificationLevel
impl TryFrom<i32> for DiversificationLevel
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<DiversificationLevel, UnknownEnumValue>
fn try_from(value: i32) -> Result<DiversificationLevel, UnknownEnumValue>
impl Copy for DiversificationLevel
impl Eq for DiversificationLevel
impl StructuralPartialEq for DiversificationLevel
Auto Trait Implementations§
impl Freeze for DiversificationLevel
impl RefUnwindSafe for DiversificationLevel
impl Send for DiversificationLevel
impl Sync for DiversificationLevel
impl Unpin for DiversificationLevel
impl UnwindSafe for DiversificationLevel
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