pub struct CreditW2 {Show 23 fields
pub allocated_tips: Option<String>,
pub box12: Vec<W2Box12>,
pub box9: Option<String>,
pub dependent_care_benefits: Option<String>,
pub document_id: String,
pub document_metadata: CreditDocumentMetadata,
pub employee: CreditPayStubEmployee,
pub employer: CreditPayStubEmployer,
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: 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: Vec<W2Box12>
§box9: Option<String>
Contents from box 9 on the W2.
dependent_care_benefits: Option<String>
Dependent care benefits.
document_id: String
An identifier of the document referenced by the document metadata.
document_metadata: CreditDocumentMetadata
Object representing metadata pertaining to the document.
employee: CreditPayStubEmployee
Data about the employee.
employer: CreditPayStubEmployer
Information about the employer on the pay stub.
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: 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 CreditW2
impl<'de> Deserialize<'de> for CreditW2
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 CreditW2
impl Send for CreditW2
impl Sync for CreditW2
impl Unpin for CreditW2
impl UnwindSafe for CreditW2
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