Struct gusto_api::custom_fields::CustomFields
source · pub struct CustomFields {
pub client: Client,
}Fields
client: ClientImplementations
sourceimpl CustomFields
impl CustomFields
sourcepub async fn get_employee(
&self,
employee_id: &str
) -> Result<GetEmployeeCustomFieldsResponse>
pub async fn get_employee(
&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.
sourcepub async fn get_company(
&self,
company_id: &str
) -> Result<GetCompanyCustomFieldsResponse>
pub async fn get_company(
&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
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more