pub fn new_from_env<T, R>(token: T, refresh_token: R) -> Self
    where
        T: ToString,
        R: ToString,
    {
        let client_id = env::var("GUSTO_CLIENT_ID").unwrap();
        let client_secret = env::var("GUSTO_CLIENT_SECRET").unwrap();
        let redirect_uri = env::var("GUSTO_REDIRECT_URI").unwrap();

        Gusto::new(client_id, client_secret, redirect_uri, token, refresh_token)
    }
/// 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.
Create a new Gusto client struct from environment variables. It
takes a type that can convert into
an &str (`String` or `Vec` 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.
Create a new Gusto client struct from environment variables . It takes a type that can convert into an &str ( ` String ` or ` Vec ` 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 .
pub fn new_from_env<T, R>(token: T, refresh_token: R) -> Self
    where
        T: ToString,
        R: ToString,
    {
        let client_id = env::var("GUSTO_CLIENT_ID").unwrap();
        let client_secret = env::var("GUSTO_CLIENT_SECRET").unwrap();
        let redirect_uri = env::var("GUSTO_REDIRECT_URI").unwrap();
        Gusto::new(client_id, client_secret, redirect_uri, token, refresh_token)
    }
pub fn new_from_env < T , R > ( token : T , refresh_token : R ) -> Self where T : ToString , R : ToString , { let client_id = env :: var ( " " ) . unwrap ( ) ; let client_secret = env :: var ( " " ) . unwrap ( ) ; let redirect_uri = env :: var ( " " ) . unwrap ( ) ; Gusto :: new ( client_id , client_secret , redirect_uri , token , refresh_token ) }
Create a new Gusto client struct from environment variables.
Create a new Gusto client struct from environment variables .
token
T
refresh_token
R
token
T
refresh_token
R