pub fn with_base_url(base_url: &str, api_key: Option<&str>) -> Result<Self, ClientError> {
        Ok(Client {
            base_url: String::from(base_url),
            http_client: Client::get_http_client(api_key)?,
        })
    }
/// Constructs a client with a different base url than the default for the API.
///
/// # Errors
/// This method fails if the API key is invalid ("\n" etc.) 
/// or if a TLS backend cannot be initialized, or the resolver
/// cannot load the system configuration.
Constructs a client with a different base url than the default for the API.
Constructs a client with a different base url than the default for the API .
pub fn with_base_url(base_url: &str, api_key: Option<&str>) -> Result<Self, ClientError> {
        Ok(Client {
            base_url: String::from(base_url),
            http_client: Client::get_http_client(api_key)?,
        })
    }
pub fn with_base_url ( base_url : & str , api_key : Option < & str > ) -> Result < Self , ClientError > { Ok ( Client { base_url : String :: from ( base_url ) , http_client : Client :: get_http_client ( api_key ) ? , } ) }
Constructs a client with a different base url than the default for the API.
Constructs a client with a different base url than the default for the API .
base_url
&str
api_key
Option<&str>
base_url
&str
api_key
Option<&str>
errors
This method fails if the API key is invalid ("\n" etc.)
or if a TLS backend cannot be initialized, or the resolver
cannot load the system configuration.
This method fails if the API key is invalid ( " \ n " etc . ) or if a TLS backend cannot be initialized or the resolver cannot load the system configuration .