Struct gusto_api::admins_beta::AdminsBeta [−][src]
pub struct AdminsBeta {
pub client: Client,
}Fields
client: ClientImplementations
Get all the admins at a company.
This function performs a GET to the /v1/companies/{company_id}/admins endpoint.
This endpoint is in beta and intended for Gusto Embedded Payroll customers. Please apply for early access if you’d like to learn more and use it for production. Note, this endpoint will require you to enter a different agreement with Gusto.
Returns a list of all the admins at a company
Get all the admins at a company.
This function performs a GET to the /v1/companies/{company_id}/admins endpoint.
As opposed to get_company_admins, this function returns all the pages of the request at once.
This endpoint is in beta and intended for Gusto Embedded Payroll customers. Please apply for early access if you’d like to learn more and use it for production. Note, this endpoint will require you to enter a different agreement with Gusto.
Returns a list of all the admins at a company
pub async fn post_company_admin(
&self,
company_id: &str,
body: &PostCompanyAdminsRequest
) -> Result<Admin>
pub async fn post_company_admin(
&self,
company_id: &str,
body: &PostCompanyAdminsRequest
) -> Result<Admin>
Create an admin for the company.
This function performs a POST to the /v1/companies/{company_id}/admins endpoint.
This endpoint is in beta and intended for Gusto Embedded Payroll customers. Please apply for early access if you’d like to learn more and use it for production. Note, this endpoint will require you to enter a different agreement with Gusto.
Creates a new admin for a company. If the email matches an existing user, this will create an admin account for the current user. Otherwise, this will create a new user.
Auto Trait Implementations
impl !RefUnwindSafe for AdminsBeta
impl Send for AdminsBeta
impl Sync for AdminsBeta
impl Unpin for AdminsBeta
impl !UnwindSafe for AdminsBeta
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more