pub struct PayrollLineItemData {
pub employee_id: String,
pub gross_pay: f64,
pub base_pay: f64,
pub overtime_pay: f64,
pub bonus_pay: f64,
pub net_pay: f64,
pub total_deductions: f64,
pub tax_deduction: f64,
pub social_security: f64,
pub health_insurance: f64,
pub retirement: f64,
pub other_deductions: f64,
}Expand description
Payroll line item data for validation.
Fields§
§employee_id: StringEmployee identifier.
gross_pay: f64Gross pay.
base_pay: f64Base salary component.
overtime_pay: f64Overtime component.
bonus_pay: f64Bonus component.
net_pay: f64Net pay.
total_deductions: f64Total deductions.
tax_deduction: f64Tax deduction.
Social security deduction.
health_insurance: f64Health insurance deduction.
retirement: f64Retirement contribution.
other_deductions: f64Other deductions.
Trait Implementations§
Source§impl Clone for PayrollLineItemData
impl Clone for PayrollLineItemData
Source§fn clone(&self) -> PayrollLineItemData
fn clone(&self) -> PayrollLineItemData
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 moreAuto Trait Implementations§
impl Freeze for PayrollLineItemData
impl RefUnwindSafe for PayrollLineItemData
impl Send for PayrollLineItemData
impl Sync for PayrollLineItemData
impl Unpin for PayrollLineItemData
impl UnwindSafe for PayrollLineItemData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.