Struct gusto_api::earning_type::EarningType[][src]

pub struct EarningType { /* fields omitted */ }

Implementations

Get all earning types for a company.

This function performs a GET to the /v1/companies/{company_id}/earning_types endpoint.

A payroll item in Gusto is associated to an earning type to name the type of earning described by the payroll item.

Default Earning Type

Certain earning types are special because they have tax considerations. Those earning types are mostly the same for every company depending on its legal structure (LLC, Corporation, etc.)

Custom Earning Type

Custom earning types are all the other earning types added specifically for a company.

Create a custom earning type.

This function performs a POST to the /v1/companies/{company_id}/earning_types endpoint.

Create a custom earning type.

If an inactive earning type exists with the same name, this will reactivate it instead of creating a new one.

Update an earning type.

This function performs a PUT to the /v1/companies/{company_id}/earning_types/{earning_type_uuid} endpoint.

Update an earning type.

Deactivate an earning type.

This function performs a DELETE to the /v1/companies/{company_id}/earning_types/{earning_type_uuid} endpoint.

Deactivate an earning type.

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.