Struct gusto_api::locations::Locations[][src]

pub struct Locations { /* fields omitted */ }

Implementations

Get company locations.

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

Company locations represent all addresses associated with a company. These can be filing addesses, mailing addresses, and/or work locations; one address may serve multiple, or all, purposes.

Since all company locations are subsets of locations, retrieving or updating an individual record should be done via the locations endpoints.

Get company locations.

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

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

Company locations represent all addresses associated with a company. These can be filing addesses, mailing addresses, and/or work locations; one address may serve multiple, or all, purposes.

Since all company locations are subsets of locations, retrieving or updating an individual record should be done via the locations endpoints.

Create a company location.

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

Company locations represent all addresses associated with a company. These can be filing addesses, mailing addresses, and/or work locations; one address may serve multiple, or all, purposes.

Since all company locations are subsets of locations, retrieving or updating an individual record should be done via the locations endpoints.

Get a location.

This function performs a GET to the /v1/locations/{location_id} endpoint.

Get a location.

Update a location.

This function performs a PUT to the /v1/locations/{location_id} endpoint.

Update a location.

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.