pub struct Monthly {
pub year: i32,
pub month: u32,
pub average_temperature: Option<f64>,
pub minimum_temperature: Option<f64>,
pub maximum_temperature: Option<f64>,
pub precipitation: Option<f64>,
pub wind_speed: Option<f64>,
pub pressure: Option<f64>,
pub sunshine_minutes: Option<i32>,
}Expand description
Represents a row of monthly weather data, suitable for collecting results.
Fields§
§year: i32The year of the observation.
month: u32The month of the observation (1-12).
average_temperature: Option<f64>Average air temperature in Celsius.
minimum_temperature: Option<f64>Average minimum air temperature in Celsius.
maximum_temperature: Option<f64>Average maximum air temperature in Celsius.
precipitation: Option<f64>Total precipitation amount in mm.
wind_speed: Option<f64>Average wind speed in km/h.
pressure: Option<f64>Average sea-level air pressure in hPa.
sunshine_minutes: Option<i32>Total sunshine duration in minutes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Monthly
impl<'de> Deserialize<'de> for Monthly
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Monthly
Auto Trait Implementations§
impl Freeze for Monthly
impl RefUnwindSafe for Monthly
impl Send for Monthly
impl Sync for Monthly
impl Unpin for Monthly
impl UnwindSafe for Monthly
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more