Enum google_api_proto::google::cloud::talent::v4::PostingRegion
source · #[repr(i32)]pub enum PostingRegion {
Unspecified = 0,
AdministrativeArea = 1,
Nation = 2,
Telecommute = 3,
}
Expand description
An enum that represents the job posting region. In most cases, job postings don’t need to specify a region. If a region is given, jobs are eligible for searches in the specified region.
Variants§
Unspecified = 0
If the region is unspecified, the job is only returned if it matches the [LocationFilter][google.cloud.talent.v4.LocationFilter].
AdministrativeArea = 1
In addition to exact location matching, job posting is returned when the
[LocationFilter][google.cloud.talent.v4.LocationFilter] in the search query
is in the same administrative area as the returned job posting. For
example, if a ADMINISTRATIVE_AREA
job is posted in “CA, USA”, it’s
returned if [LocationFilter][google.cloud.talent.v4.LocationFilter] has
“Mountain View”.
Administrative area refers to top-level administrative subdivision of this country. For example, US state, IT region, UK constituent nation and JP prefecture.
Nation = 2
In addition to exact location matching, job is returned when
[LocationFilter][google.cloud.talent.v4.LocationFilter] in search query is
in the same country as this job. For example, if a NATION_WIDE
job is
posted in “USA”, it’s returned if
[LocationFilter][google.cloud.talent.v4.LocationFilter] has ‘Mountain
View’.
Telecommute = 3
Job allows employees to work remotely (telecommute). If locations are provided with this value, the job is considered as having a location, but telecommuting is allowed.
Implementations§
source§impl PostingRegion
impl PostingRegion
source§impl PostingRegion
impl PostingRegion
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 PostingRegion
impl Clone for PostingRegion
source§fn clone(&self) -> PostingRegion
fn clone(&self) -> PostingRegion
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PostingRegion
impl Debug for PostingRegion
source§impl Default for PostingRegion
impl Default for PostingRegion
source§fn default() -> PostingRegion
fn default() -> PostingRegion
source§impl From<PostingRegion> for i32
impl From<PostingRegion> for i32
source§fn from(value: PostingRegion) -> i32
fn from(value: PostingRegion) -> i32
source§impl Hash for PostingRegion
impl Hash for PostingRegion
source§impl Ord for PostingRegion
impl Ord for PostingRegion
source§fn cmp(&self, other: &PostingRegion) -> Ordering
fn cmp(&self, other: &PostingRegion) -> 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 PostingRegion
impl PartialEq for PostingRegion
source§fn eq(&self, other: &PostingRegion) -> bool
fn eq(&self, other: &PostingRegion) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PostingRegion
impl PartialOrd for PostingRegion
source§fn partial_cmp(&self, other: &PostingRegion) -> Option<Ordering>
fn partial_cmp(&self, other: &PostingRegion) -> 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 PostingRegion
impl TryFrom<i32> for PostingRegion
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PostingRegion, UnknownEnumValue>
fn try_from(value: i32) -> Result<PostingRegion, UnknownEnumValue>
impl Copy for PostingRegion
impl Eq for PostingRegion
impl StructuralPartialEq for PostingRegion
Auto Trait Implementations§
impl Freeze for PostingRegion
impl RefUnwindSafe for PostingRegion
impl Send for PostingRegion
impl Sync for PostingRegion
impl Unpin for PostingRegion
impl UnwindSafe for PostingRegion
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