Struct google_api_proto::google::cloud::talent::v4::compensation_info::CompensationEntry
source · pub struct CompensationEntry {
pub type: i32,
pub unit: i32,
pub description: String,
pub expected_units_per_year: Option<f64>,
pub compensation_amount: Option<CompensationAmount>,
}
Expand description
A compensation entry that represents one component of compensation, such as base pay, bonus, or other compensation type.
Annualization: One compensation entry can be annualized if
- it contains valid [amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount] or [range][google.cloud.talent.v4.CompensationInfo.CompensationEntry.range].
- and its [expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year] is set or can be derived. Its annualized range is determined as ([amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount] or [range][google.cloud.talent.v4.CompensationInfo.CompensationEntry.range]) times [expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
Fields§
§type: i32
Compensation type.
Default is [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
unit: i32
Frequency of the specified amount.
Default is [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
description: String
Compensation description. For example, could indicate equity terms or provide additional context to an estimated bonus.
expected_units_per_year: Option<f64>
Expected number of units paid each year. If not specified, when [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is FULLTIME, a default value is inferred based on [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit]. Default values:
- HOURLY: 2080
- DAILY: 260
- WEEKLY: 52
- MONTHLY: 12
- ANNUAL: 1
compensation_amount: Option<CompensationAmount>
Compensation amount. It could be a fixed amount or a floating range.
Implementations§
source§impl CompensationEntry
impl CompensationEntry
sourcepub fn type(&self) -> CompensationType
pub fn type(&self) -> CompensationType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: CompensationType)
pub fn set_type(&mut self, value: CompensationType)
Sets type
to the provided enum value.
sourcepub fn unit(&self) -> CompensationUnit
pub fn unit(&self) -> CompensationUnit
Returns the enum value of unit
, or the default if the field is set to an invalid enum value.
sourcepub fn set_unit(&mut self, value: CompensationUnit)
pub fn set_unit(&mut self, value: CompensationUnit)
Sets unit
to the provided enum value.
Trait Implementations§
source§impl Clone for CompensationEntry
impl Clone for CompensationEntry
source§fn clone(&self) -> CompensationEntry
fn clone(&self) -> CompensationEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CompensationEntry
impl Debug for CompensationEntry
source§impl Default for CompensationEntry
impl Default for CompensationEntry
source§impl Message for CompensationEntry
impl Message for CompensationEntry
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CompensationEntry
impl PartialEq for CompensationEntry
source§fn eq(&self, other: &CompensationEntry) -> bool
fn eq(&self, other: &CompensationEntry) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CompensationEntry
Auto Trait Implementations§
impl Freeze for CompensationEntry
impl RefUnwindSafe for CompensationEntry
impl Send for CompensationEntry
impl Sync for CompensationEntry
impl Unpin for CompensationEntry
impl UnwindSafe for CompensationEntry
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<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