Struct gusto_api::Gusto [−][src]
pub struct Gusto { /* fields omitted */ }
Expand description
Entrypoint for interacting with the Gusto API.
Implementations
Create a new Gusto client struct. It takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API key your requests will work.
pub fn new_from_env<T, R, C>(token: T, refresh_token: R, company_id: C) -> Self where
T: ToString,
R: ToString,
C: ToString,
[src]
pub fn new_from_env<T, R, C>(token: T, refresh_token: R, company_id: C) -> Self where
T: ToString,
R: ToString,
C: ToString,
[src]Create a new Gusto client struct from environment variables. It
takes a type that can convert into
an &str (String
or Vec<u8>
for example). As long as the function is
given a valid API key and your requests will work.
We pass in the token and refresh token to the client so if you are storing
it in a database, you can get it first.
Get information about the current user.
Auto Trait Implementations
impl !RefUnwindSafe for Gusto
impl !UnwindSafe for Gusto