Struct gusto_api::terminations::Terminations [−][src]
pub struct Terminations {
pub client: Client,
}Fields
client: ClientImplementations
Get terminations for an employee.
This function performs a GET to the /v1/employees/{employee_id}/terminations endpoint.
Terminations are created whenever an employee is scheduled to leave the company. The only things required are an effective date (their last day of work) and whether they should receive their wages in a one-off termination payroll or with the rest of the company.
Note that some states require employees to receive their final wages within 24 hours (unless they consent otherwise,) in which case running a one-off payroll may be the only option.
Get terminations for an employee.
This function performs a GET to the /v1/employees/{employee_id}/terminations endpoint.
As opposed to get_employee, this function returns all the pages of the request at once.
Terminations are created whenever an employee is scheduled to leave the company. The only things required are an effective date (their last day of work) and whether they should receive their wages in a one-off termination payroll or with the rest of the company.
Note that some states require employees to receive their final wages within 24 hours (unless they consent otherwise,) in which case running a one-off payroll may be the only option.
pub async fn post_employee(
&self,
employee_id: &str,
body: &PostEmployeeTerminationsRequest
) -> Result<Termination>
pub async fn post_employee(
&self,
employee_id: &str,
body: &PostEmployeeTerminationsRequest
) -> Result<Termination>
Create an employee termination.
This function performs a POST to the /v1/employees/{employee_id}/terminations endpoint.
Terminations are created whenever an employee is scheduled to leave the company. The only things required are an effective date (their last day of work) and whether they should receive their wages in a one-off termination payroll or with the rest of the company.
Note that some states require employees to receive their final wages within 24 hours (unless they consent otherwise,) in which case running a one-off payroll may be the only option.
Auto Trait Implementations
impl !RefUnwindSafe for Terminations
impl Send for Terminations
impl Sync for Terminations
impl Unpin for Terminations
impl !UnwindSafe for Terminations
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