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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Auto Trait Implementations§
impl Freeze for PayrollLineItem
impl RefUnwindSafe for PayrollLineItem
impl Send for PayrollLineItem
impl Sync for PayrollLineItem
impl Unpin for PayrollLineItem
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.