Struct darksky::Options [] [src]

pub struct Options(_);

Build a list of options to send in the request, including the type of units that the API should return, the blocks to exclude, whether to extend the hourly forecast, and the language for the summary.

Refer to the documentation for get_forecast_with_options on how to use this.

Methods

impl Options
[src]

[src]

Set the list of Datablocks to exclude. For a full list of potential datablocks to exclude, refer to Block.

[src]

Extends the hourly forecast to the full 7 days ahead, rather than only the first 2 days.

[src]

Set the language of the summary provided.

[src]

Sets the unit type returned from the API. Refer to the DarkSky documentation or the Unit docs for more info.

Trait Implementations

impl Clone for Options
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Options
[src]

[src]

Formats the value using the given formatter.

impl Default for Options
[src]

[src]

Returns the "default value" for a type. Read more