pub struct PayrollLineItem {Show 23 fields
pub payroll_id: String,
pub employee_id: String,
pub line_id: String,
pub gross_pay: Decimal,
pub base_salary: Decimal,
pub overtime_pay: Decimal,
pub bonus: Decimal,
pub tax_withholding: Decimal,
pub social_security: Decimal,
pub health_insurance: Decimal,
pub retirement_contribution: Decimal,
pub other_deductions: Decimal,
pub net_pay: Decimal,
pub hours_worked: f64,
pub overtime_hours: f64,
pub pay_date: NaiveDate,
pub cost_center: Option<String>,
pub department: Option<String>,
pub tax_withholding_label: Option<String>,
pub social_security_label: Option<String>,
pub health_insurance_label: Option<String>,
pub retirement_contribution_label: Option<String>,
pub employer_contribution_label: Option<String>,
}Expand description
An individual employee’s payroll line item within a payroll run.
Fields§
§payroll_id: StringReference to the parent payroll run
employee_id: StringEmployee identifier
line_id: StringUnique line item identifier
gross_pay: DecimalTotal gross pay for this employee
base_salary: DecimalBase salary component
overtime_pay: DecimalOvertime pay component
bonus: DecimalBonus component
tax_withholding: DecimalFederal/state tax withholding
Social security / FICA deduction
health_insurance: DecimalHealth insurance deduction
retirement_contribution: DecimalRetirement plan contribution (employee side)
other_deductions: DecimalOther deductions (garnishments, voluntary deductions, etc.)
net_pay: DecimalNet pay after all deductions
hours_worked: f64Regular hours worked in the period
overtime_hours: f64Overtime hours worked in the period
pay_date: NaiveDateDate payment is issued
cost_center: Option<String>Cost center allocation
department: Option<String>Department allocation
tax_withholding_label: Option<String>Localized label for the tax withholding deduction.
Localized label for the social security / FICA deduction.
health_insurance_label: Option<String>Localized label for the health insurance deduction.
retirement_contribution_label: Option<String>Localized label for the retirement / pension contribution.
employer_contribution_label: Option<String>Localized label(s) for employer contributions (semicolon-separated).
Trait Implementations§
Source§impl Clone for PayrollLineItem
impl Clone for PayrollLineItem
Source§fn clone(&self) -> PayrollLineItem
fn clone(&self) -> PayrollLineItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more