Struct proxer::client::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
Client that holds the api key and sends requests
Methods
impl Client
[src]
Shortcuts to the endpoints
impl Client
[src]
fn new(api_key: String) -> Self
[src]
Create a new api client
fn with_env_key(env_key: &str) -> Option<Client>
[src]
fn execute<'a, T: Endpoint + Clone + Debug>(
&self,
endpoint: T
) -> Result<T::ResponseType, Error>
[src]
&self,
endpoint: T
) -> Result<T::ResponseType, Error>
execute a request that satisfies Request