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]

[src]

Construct a new ApiClient.

[src]

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.

[src]

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]

[src]

Formats the value using the given formatter.