Struct darksky::Forecast
[−]
[src]
pub struct Forecast { pub alerts: Vec<Alert>, pub currently: Option<Datapoint>, pub daily: Option<Datablock>, pub flags: Option<Flags>, pub hourly: Option<Datablock>, pub latitude: f64, pub longitude: f64, pub minutely: Option<Datablock>, pub offset: Option<f64>, pub timezone: String, }
A full forecast returned from the get_forecast
and
get_forecast_with_options
functions.
Most of the fields are optional, due to being able to be excluded via the
Options
builder.
Fields
alerts: Vec<Alert>
currently: Option<Datapoint>
The current forecast.
This may be excluded by passing the Block::Currently
variant to
Options::exclude
.
daily: Option<Datablock>
Daily Datablock
s within a forecast.
This may be excluded by passing the Block::Daily
variant to
Options::exclude
.
flags: Option<Flags>
A set of flags returned from the API.
This may be excluded by passing the Block::Flags
variant to
Options::exclude
.
hourly: Option<Datablock>
Hourly Datablock
s within a forecast.
This may be excluded by passing the Block::Hourly
variant to
Options::exclude
.
latitude: f64
The latitude of the forecast's location.
longitude: f64
The longitude of the forecast's location.
minutely: Option<Datablock>
Minutely Datablock
s within a forecast.
This may be excluded by passing the Block::Minutely
variant to
Options::exclude
.
offset: Option<f64>
The timezone offset of the forecast, relative to the UTC timezone.
timezone: String
The name of the timezone.
Trait Implementations
impl Clone for Forecast
[src]
fn clone(&self) -> Forecast
[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