Skip to main content

new

Function new 

Source
pub fn new(
    base_url: impl Into<String>,
    token: Option<String>,
) -> Result<Client, Error>
Expand description

Build a Client configured for base_url with an optional bearer token.

All requests issued through the returned client will include Authorization: Bearer <token> if a token is provided.