[][src]Struct gusto_api::Employee

pub struct Employee {
    pub id: u64,
    pub version: String,
    pub first_name: String,
    pub middle_initial: String,
    pub last_name: String,
    pub company_id: u64,
    pub manager_id: u64,
    pub department: String,
    pub email: String,
    pub ssn: String,
    pub date_of_birth: NaiveDate,
    pub jobs: Vec<Job>,
    pub home_address: Address,
    pub garnishments: Vec<Garnishment>,
    pub eligible_paid_time_off: Vec<PaidTimeOff>,
    pub onboarded: bool,
    pub terminated: bool,
    pub terminations: Vec<Termination>,
}

An employee. FROM: https://docs.gusto.com/v1/employees

Fields

id: u64version: Stringfirst_name: Stringmiddle_initial: Stringlast_name: Stringcompany_id: u64manager_id: u64department: Stringemail: Stringssn: Stringdate_of_birth: NaiveDatejobs: Vec<Job>home_address: Addressgarnishments: Vec<Garnishment>eligible_paid_time_off: Vec<PaidTimeOff>onboarded: boolterminated: boolterminations: Vec<Termination>

Trait Implementations

impl Clone for Employee[src]

impl Debug for Employee[src]

impl<'de> Deserialize<'de> for Employee[src]

impl Serialize for Employee[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.