Struct gusto_api::employees::Employees[][src]

pub struct Employees { /* fields omitted */ }

Implementations

Get an employee.

This function performs a GET to the /v1/employees/{employee_id_or_uuid} endpoint.

Get an employee.

Parameters:

  • include: &[String] – Include the requested attribute(s) in each employee response.

Update an employee.

This function performs a PUT to the /v1/employees/{employee_id_or_uuid} endpoint.

Update an employee.

Get employees of a company.

This function performs a GET to the /v1/companies/{company_id_or_uuid}/employees endpoint.

Get all of the employees, onboarding, active and terminated, for a given company.

Parameters:

  • terminated: bool – Filters employees by the provided boolean.
  • page: f64 – The page that is requested. When unspecified, will load all employees.
  • per: f64 – Number of employees per page. When unspecified, will default to 25.
  • include: &[String] – Include the requested attribute(s) in each employee response.

Get employees of a company.

This function performs a GET to the /v1/companies/{company_id_or_uuid}/employees endpoint.

As opposed to get_company_employees, this function returns all the pages of the request at once.

Get all of the employees, onboarding, active and terminated, for a given company.

Create an employee.

This function performs a POST to the /v1/companies/{company_id_or_uuid}/employees endpoint.

Create an employee.

Get an employee’s home address.

This function performs a GET to the /v1/employees/{employee_id}/home_address endpoint.

The home address of an employee is used to determine certain tax information about them. Addresses are geocoded on create and update to ensure validity.

Update an employee’s home address.

This function performs a PUT to the /v1/employees/{employee_id}/home_address endpoint.

The home address of an employee is used to determine certain tax information about them. Addresses are geocoded on create and update to ensure validity.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.