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

The current forecast.

This may be excluded by passing the Block::Currently variant to Options::exclude.

Daily Datablocks within a forecast.

This may be excluded by passing the Block::Daily variant to Options::exclude.

A set of flags returned from the API.

This may be excluded by passing the Block::Flags variant to Options::exclude.

Hourly Datablocks within a forecast.

This may be excluded by passing the Block::Hourly variant to Options::exclude.

The latitude of the forecast's location.

The longitude of the forecast's location.

Minutely Datablocks within a forecast.

This may be excluded by passing the Block::Minutely variant to Options::exclude.

The timezone offset of the forecast, relative to the UTC timezone.

The name of the timezone.

Trait Implementations

impl Clone for Forecast
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Forecast
[src]

[src]

Formats the value using the given formatter.