pub struct EarningType {
    pub client: Client,
}

Fields

client: Client

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

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
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

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more