pub struct PayrollRun {Show 14 fields
pub company_code: String,
pub payroll_id: String,
pub pay_period_start: NaiveDate,
pub pay_period_end: NaiveDate,
pub run_date: NaiveDate,
pub status: PayrollRunStatus,
pub total_gross: Decimal,
pub total_deductions: Decimal,
pub total_net: Decimal,
pub total_employer_cost: Decimal,
pub employee_count: u32,
pub currency: String,
pub posted_by: Option<String>,
pub approved_by: Option<String>,
}Expand description
A payroll run representing a complete pay cycle for a company.
Fields§
§company_code: StringCompany code
payroll_id: StringUnique payroll run identifier
pay_period_start: NaiveDateStart of the pay period
pay_period_end: NaiveDateEnd of the pay period
run_date: NaiveDateDate the payroll was run/processed
status: PayrollRunStatusCurrent status of the payroll run
total_gross: DecimalTotal gross pay across all employees
total_deductions: DecimalTotal deductions across all employees
total_net: DecimalTotal net pay across all employees
total_employer_cost: DecimalTotal employer cost (gross + employer-side taxes/benefits)
employee_count: u32Number of employees included in this run
currency: StringCurrency code (e.g., USD, EUR)
posted_by: Option<String>User who posted the payroll
approved_by: Option<String>User who approved the payroll
Trait Implementations§
Source§impl Clone for PayrollRun
impl Clone for PayrollRun
Source§fn clone(&self) -> PayrollRun
fn clone(&self) -> PayrollRun
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 PayrollRun
impl Debug for PayrollRun
Source§impl<'de> Deserialize<'de> for PayrollRun
impl<'de> Deserialize<'de> for PayrollRun
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 PayrollRun
impl RefUnwindSafe for PayrollRun
impl Send for PayrollRun
impl Sync for PayrollRun
impl Unpin for PayrollRun
impl UnwindSafe for PayrollRun
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