pub struct CustomFields {
pub client: Client,
}Fields§
§client: ClientImplementations§
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 Freeze for CustomFields
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