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]
fn exclude(self, blocks: Vec<Block>) -> Self
[src]
Set the list of Datablock
s to exclude. For a full list of potential
datablocks to exclude, refer to Block
.
fn extend_hourly(self) -> Self
[src]
Extends the hourly forecast to the full 7
days ahead,
rather than only the first 2
days.
fn language(self, language: Language) -> Self
[src]
Set the language of the summary
provided.
fn unit(self, unit: Unit) -> Self
[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]
fn clone(&self) -> Options
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more