Struct windy_station::Observation[][src]

pub struct Observation {
    pub station_id: Option<u32>,
    pub time: Option<DateTime<Utc>>,
    pub temperature: Option<f32>,
    pub wind_speed: Option<f32>,
    pub wind_direction: Option<u16>,
    pub wind_gust: Option<f32>,
    pub relative_humidity: Option<f32>,
    pub dew_point: Option<f32>,
    pub pressure: Option<f32>,
    pub precipitation: Option<f32>,
    pub uv_index: Option<u8>,

An observation recorded by the station.


station_id: Option<u32>

Station identifier.

time: Option<DateTime<Utc>>

Time of the measurement. When not present, current server time is used.

temperature: Option<f32>

Air temperature, in celsius.

wind_speed: Option<f32>

Wind speed, in m/s.

wind_direction: Option<u16>

Wind direction, in degrees.

wind_gust: Option<f32>

Wind gust, in m/s.

relative_humidity: Option<f32>

Relative humidity, in %.

dew_point: Option<f32>

Dew point, in celsius.

pressure: Option<f32>

Atmospheric pressure, in Pa.

precipitation: Option<f32>

Precipitation over the past hour, in mm.

uv_index: Option<u8>

UV index.

Trait Implementations

impl Clone for Observation[src]

impl Debug for Observation[src]

impl Default for Observation[src]

impl<'de> Deserialize<'de> for Observation[src]

impl PartialEq<Observation> for Observation[src]

impl Serialize for Observation[src]

impl StructuralPartialEq for Observation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.