Crate gusto_api[−][src]
Expand description
A rust library for interacting with the Gusto API.
For more information, the Gusto API is documented at docs.gusto.com.
Example:
use gusto_api::Gusto; use serde::{Deserialize, Serialize}; async fn get_current_user() { // Initialize the Gusto client. let gusto = Gusto::new_from_env(); // Get the current user. let current_user = gusto.current_user().await.unwrap(); println!("{:?}", current_user); }
Structs
APIError | Error type returned by our library. |
AccessToken | |
Address | An address. FROM: https://docs.gusto.com/v1/employee_home_address |
Company | A company. FROM: https://docs.gusto.com/v1/companies |
Compensation | A compensation. FROM: https://docs.gusto.com/v1/compensations |
CurrentUser | Current user. FROM: https://docs.gusto.com/v1/current_user |
Employee | An employee. FROM: https://docs.gusto.com/v1/employees |
Garnishment | A garnishment. FROM: https://docs.gusto.com/v1/garnishments |
Gusto | Entrypoint for interacting with the Gusto API. |
Job | A job. FROM: https://docs.gusto.com/v1/jobs |
Location | A location. FROM: https://docs.gusto.com/v1/locations |
PaidTimeOff | Paid time off. FROM: https://docs.gusto.com/v1/paid_time_off |
Role | A role. FROM: https://docs.gusto.com/v1/current_user |
Termination | Termination. FROM: https://docs.gusto.com/v1/terminations |