pub struct Compensation {Show 17 fields
pub id: String,
pub created_at: String,
pub updated_at: String,
pub worker_id: Option<String>,
pub annual_compensation: Option<Currency>,
pub annual_salary_equivalent: Option<Currency>,
pub hourly_wage: Option<Currency>,
pub monthly_compensation: Option<Currency>,
pub on_target_commission: Option<Currency>,
pub relocation_reimbursement: Option<Currency>,
pub signing_bonus: Option<Currency>,
pub target_annual_bonus: Option<Currency>,
pub weekly_compensation: Option<Currency>,
pub target_annual_bonus_percent: Option<f64>,
pub bonus_schedule: Option<String>,
pub payment_type: Option<String>,
pub payment_terms: Option<String>,
}
Expand description
Compensation.
Fields§
§id: String
Identifier field
created_at: String
Record creation date
updated_at: String
Record update date
worker_id: Option<String>
The worker’s ID.
annual_compensation: Option<Currency>
The worker’s annual compensation. This calculation assumes 40-hour work weeks for workers with an hourly wage.
annual_salary_equivalent: Option<Currency>
The worker’s annual salary equivalent, for insurance purposes. It will be equal to the worker’s annual compensation, except for owners that are receiving no cashcompensation.
hourly_wage: Option<Currency>
The worker’s hourly wage. This calculation assumes 40-hour work weeks for workers with fixed compensation.
monthly_compensation: Option<Currency>
The worker’s monthly compensation. This calculation assumes 40-hour work weeks for workers with an hourly wage.
on_target_commission: Option<Currency>
The worker’s on-target commission.
relocation_reimbursement: Option<Currency>
The worker’s hourly wage. This calculation assumes 40-hour work weeks for workers with fixed compensation.
signing_bonus: Option<Currency>
The worker’s signing bonus.
target_annual_bonus: Option<Currency>
The worker’s target annual bonus amount.
weekly_compensation: Option<Currency>
The worker’s weekly compensation. This calculation assumes 40-hour work weeks for workers with an hourly wage.
target_annual_bonus_percent: Option<f64>
The worker’s target annual bonus as a percent of annual compensation.
bonus_schedule: Option<String>
The worker’s bonus schedule.
payment_type: Option<String>
The payment type for an worker’s compensation.
payment_terms: Option<String>
The payment terms for an worker’s compensation.
Trait Implementations§
Source§impl Clone for Compensation
impl Clone for Compensation
Source§fn clone(&self) -> Compensation
fn clone(&self) -> Compensation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for Compensation
impl Debug for Compensation
Source§impl<'de> Deserialize<'de> for Compensation
impl<'de> Deserialize<'de> for Compensation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for Compensation
impl Display for Compensation
Source§impl JsonSchema for Compensation
impl JsonSchema for Compensation
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreSource§impl PartialEq for Compensation
impl PartialEq for Compensation
Source§impl Serialize for Compensation
impl Serialize for Compensation
Source§impl Tabled for Compensation
impl Tabled for Compensation
impl StructuralPartialEq for Compensation
Auto Trait Implementations§
impl Freeze for Compensation
impl RefUnwindSafe for Compensation
impl Send for Compensation
impl Sync for Compensation
impl Unpin for Compensation
impl UnwindSafe for Compensation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.