Struct proxer::client::Client
[−]
[src]
pub struct Client { /* fields omitted */ }
Client that holds the api key and sends requests
Methods
impl Client
[src]
fn new(api_key: String) -> Self
[src]
Create a new api client with a given api key
fn with_env_key(env_key: &str) -> Option<Client>
[src]
load api key from an environment variable
fn cooldown_time(&mut self, time: Duration)
[src]
fn execute<T>(&mut self, endpoint: T) -> Result<T::ResponseType, Error> where
T: Endpoint + Clone + Debug,
[src]
T: Endpoint + Clone + Debug,
execute a request that satisfies Endpoint
fn pager<T>(self, endpoint: T) -> Pager<T> where
T: Endpoint + PageableEndpoint,
T: Clone + Debug,
<T as Endpoint>::ResponseType: IntoIterator + Clone + Debug,
[src]
T: Endpoint + PageableEndpoint,
T: Clone + Debug,
<T as Endpoint>::ResponseType: IntoIterator + Clone + Debug,