Struct gusto_api::types::EmployeeCompensations[][src]

pub struct EmployeeCompensations {
    pub benefits: Vec<Benefits>,
    pub deductions: Vec<Deductions>,
    pub employee_id: f64,
    pub fixed_compensations: Vec<FixedCompensations>,
    pub gross_pay: String,
    pub hourly_compensations: Vec<HourlyCompensations>,
    pub net_pay: String,
    pub paid_time_off: Vec<PayrollEmployeeCompensationsPaidTimeOff>,
    pub payment_method: Option<PayrollEmployeeCompensationsPaymentMethod>,
    pub taxes: Vec<Taxes>,
}

Fields

benefits: Vec<Benefits>

An array of employee benefits for the pay period. Benefits are only included for processed payroll when the include parameter is present.

deductions: Vec<Deductions>

An array of employee deductions for the pay period. Deductions are only included for processed payroll when the include parameter is present.

employee_id: f64

The ID of the employee.

fixed_compensations: Vec<FixedCompensations>

An array of fixed compensations for the employee. Fixed compensations include tips, bonuses, and one time reimbursements. If this payroll has been procesed, only fixed compensations with a value greater than 0.00 are returned. For an unprocess payroll, all active fixed compensations are returned.

gross_pay: String

The employee’s gross pay. This value is only available for processed payrolls.

hourly_compensations: Vec<HourlyCompensations>

An array of hourly compensations for the employee. Hourly compensations include regular, overtime, and double overtime hours. If this payroll has been procesed, only hourly compensations with a value greater than 0.00 are returned. For an unprocess payroll, all active hourly compensations are returned.

net_pay: String

The employee’s net pay. This value is only available for processed payrolls.

paid_time_off: Vec<PayrollEmployeeCompensationsPaidTimeOff>

An array of all paid time off the employee is eligible for this pay period.

payment_method: Option<PayrollEmployeeCompensationsPaymentMethod>

The employee’s compensation payment method. This value is only available for processed payrolls.

taxes: Vec<Taxes>

An array of employer and employee taxes for the pay period. Taxes are only included for processed payroll when the include parameter is present.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

The name of the generated JSON Schema. Read more

Generates a JSON Schema for this type. Read more

Whether JSON Schemas generated for this type should be re-used where possible using the $ref keyword. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.