Struct gusto_api::custom_fields::CustomFields
source · pub struct CustomFields {
pub client: Client,
}
Fields§
§client: Client
Implementations§
source§impl CustomFields
impl CustomFields
sourcepub async fn get_employee(
&self,
employee_id: &str
) -> Result<Response<GetEmployeeCustomFieldsResponse>, ClientError>
pub async fn get_employee( &self, employee_id: &str ) -> Result<Response<GetEmployeeCustomFieldsResponse>, ClientError>
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.
sourcepub async fn get_company(
&self,
company_id: &str
) -> Result<Response<GetCompanyCustomFieldsResponse>, ClientError>
pub async fn get_company( &self, company_id: &str ) -> Result<Response<GetCompanyCustomFieldsResponse>, ClientError>
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
Auto Trait Implementations§
impl !RefUnwindSafe for CustomFields
impl Send for CustomFields
impl Sync for CustomFields
impl Unpin for CustomFields
impl !UnwindSafe for CustomFields
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more