#[repr(i32)]pub enum CompensationType {
Unspecified = 0,
Base = 1,
Bonus = 2,
SigningBonus = 3,
Equity = 4,
ProfitSharing = 5,
Commissions = 6,
Tips = 7,
OtherCompensationType = 8,
}
Expand description
The type of compensation.
For compensation amounts specified in non-monetary amounts, describe the compensation scheme in the [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description].
For example, tipping format is described in [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] (for example, “expect 15-20% tips based on customer bill.”) and an estimate of the tips provided in [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range] ($10 per hour).
For example, equity is described in [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] (for example, “1% - 2% equity vesting over 4 years, 1 year cliff”) and value estimated in [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. If no value estimate is possible, units are [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED] and then further clarified in [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] field.
Variants§
Unspecified = 0
Default value.
Base = 1
Base compensation: Refers to the fixed amount of money paid to an employee by an employer in return for work performed. Base compensation does not include benefits, bonuses or any other potential compensation from an employer.
Bonus = 2
Bonus.
SigningBonus = 3
Signing bonus.
Equity = 4
Equity.
ProfitSharing = 5
Profit sharing.
Commissions = 6
Commission.
Tips = 7
Tips.
OtherCompensationType = 8
Other compensation type.
Implementations§
source§impl CompensationType
impl CompensationType
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 CompensationType
impl Clone for CompensationType
source§fn clone(&self) -> CompensationType
fn clone(&self) -> CompensationType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CompensationType
impl Debug for CompensationType
source§impl Default for CompensationType
impl Default for CompensationType
source§fn default() -> CompensationType
fn default() -> CompensationType
source§impl From<CompensationType> for i32
impl From<CompensationType> for i32
source§fn from(value: CompensationType) -> i32
fn from(value: CompensationType) -> i32
source§impl Hash for CompensationType
impl Hash for CompensationType
source§impl Ord for CompensationType
impl Ord for CompensationType
source§fn cmp(&self, other: &CompensationType) -> Ordering
fn cmp(&self, other: &CompensationType) -> 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 CompensationType
impl PartialEq for CompensationType
source§fn eq(&self, other: &CompensationType) -> bool
fn eq(&self, other: &CompensationType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CompensationType
impl PartialOrd for CompensationType
source§fn partial_cmp(&self, other: &CompensationType) -> Option<Ordering>
fn partial_cmp(&self, other: &CompensationType) -> 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 CompensationType
impl TryFrom<i32> for CompensationType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CompensationType, DecodeError>
fn try_from(value: i32) -> Result<CompensationType, DecodeError>
impl Copy for CompensationType
impl Eq for CompensationType
impl StructuralPartialEq for CompensationType
Auto Trait Implementations§
impl Freeze for CompensationType
impl RefUnwindSafe for CompensationType
impl Send for CompensationType
impl Sync for CompensationType
impl Unpin for CompensationType
impl UnwindSafe for CompensationType
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