pub struct W2 {Show 21 fields
pub allocated_tips: Option<String>,
pub box12: Option<Vec<W2Box12>>,
pub box9: Option<String>,
pub dependent_care_benefits: Option<String>,
pub employee: Option<Employee>,
pub employer: Option<PaystubEmployer>,
pub employer_id_number: Option<String>,
pub federal_income_tax_withheld: Option<String>,
pub medicare_tax_withheld: Option<String>,
pub medicare_wages_and_tips: Option<String>,
pub nonqualified_plans: Option<String>,
pub other: Option<String>,
pub retirement_plan: Option<String>,
pub social_security_tax_withheld: Option<String>,
pub social_security_tips: Option<String>,
pub social_security_wages: Option<String>,
pub state_and_local_wages: Option<Vec<W2StateAndLocalWages>>,
pub statutory_employee: Option<String>,
pub tax_year: Option<String>,
pub third_party_sick_pay: Option<String>,
pub wages_tips_other_comp: Option<String>,
}
Expand description
W2 is an object that represents income data taken from a W2 tax document.
Fields§
§allocated_tips: Option<String>
Allocated tips.
box12: Option<Vec<W2Box12>>
§box9: Option<String>
Contents from box 9 on the W2.
dependent_care_benefits: Option<String>
Dependent care benefits.
employee: Option<Employee>
Data about the employee.
employer: Option<PaystubEmployer>
Information about the employer on the paystub
employer_id_number: Option<String>
An employee identification number or EIN.
federal_income_tax_withheld: Option<String>
Federal income tax withheld for the tax year.
medicare_tax_withheld: Option<String>
Medicare tax withheld for the tax year.
medicare_wages_and_tips: Option<String>
Wages and tips from medicare.
nonqualified_plans: Option<String>
Nonqualified plans.
other: Option<String>
Other.
retirement_plan: Option<String>
Retirement plan.
Social security tax withheld for the tax year.
Tips from social security.
Wages from social security.
state_and_local_wages: Option<Vec<W2StateAndLocalWages>>
§statutory_employee: Option<String>
Statutory employee.
tax_year: Option<String>
The tax year of the W2 document.
third_party_sick_pay: Option<String>
Third party sick pay.
wages_tips_other_comp: Option<String>
Wages from tips and other compensation.
Trait Implementations§
source§impl<'de> Deserialize<'de> for W2
impl<'de> Deserialize<'de> for W2
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 RefUnwindSafe for W2
impl Send for W2
impl Sync for W2
impl Unpin for W2
impl UnwindSafe for W2
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