pub struct PayrollLineItem {Show 18 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>,
}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
Trait Implementations§
Source§impl Clone for PayrollLineItem
impl Clone for PayrollLineItem
Source§fn clone(&self) -> PayrollLineItem
fn clone(&self) -> PayrollLineItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PayrollLineItem
impl Debug for PayrollLineItem
Source§impl<'de> Deserialize<'de> for PayrollLineItem
impl<'de> Deserialize<'de> for PayrollLineItem
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PayrollLineItem
impl RefUnwindSafe for PayrollLineItem
impl Send for PayrollLineItem
impl Sync for PayrollLineItem
impl Unpin for PayrollLineItem
impl UnwindSafe for PayrollLineItem
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
Mutably borrows from an owned value. Read more