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.
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 Gustoimpl !UnwindSafe for Gusto