Struct forecast::ApiClient[][src]

pub struct ApiClient<'a> { /* fields omitted */ }

The ApiClient is a thin wrapper around a reqwest::Client which sends requests to the Forecast and Time Machine APIs.

Methods

impl<'a> ApiClient<'a>
[src]

Construct a new ApiClient.

Send a Forecast API request, returns the corresponding Response.

Errors

This function is a thin wrapper around reqwest::Client.get(..), so it will return an error under the same conditions in which reqwest would.

Send a Time Machine API request, returns the corresponding Response.

Errors

This function is a thin wrapper around reqwest::Client.get(..), so it will return an error under the same conditions in which reqwest would.

Trait Implementations

impl<'a> Debug for ApiClient<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for ApiClient<'a>

impl<'a> Sync for ApiClient<'a>