Struct gusto_api::custom_fields::CustomFields [−][src]
pub struct CustomFields { /* fields omitted */ }
Implementations
pub async fn get_employee_custom_fields(
&self,
employee_id: &str
) -> Result<GetEmployeeCustomFieldsResponse>
pub async fn get_employee_custom_fields(
&self,
employee_id: &str
) -> Result<GetEmployeeCustomFieldsResponse>
Get an employee’s custom fields.
This function performs a GET
to the /v1/employees/{employee_id}/custom_fields
endpoint.
Returns a list of the employee’s custom fields.
pub async fn get_company_custom_fields(
&self,
company_id: &str
) -> Result<GetCompanyCustomFieldsResponse>
pub async fn get_company_custom_fields(
&self,
company_id: &str
) -> Result<GetCompanyCustomFieldsResponse>
Get the custom fields of a company.
This function performs a GET
to the /v1/companies/{company_id}/custom_fields
endpoint.
Returns a list of the custom fields of the company. Useful when you need to know the schema of custom fields for an entire company