pub struct WeatherRecord {Show 17 fields
pub time: String,
pub ghi: f64,
pub dni: f64,
pub dhi: f64,
pub temp_air: f64,
pub wind_speed: f64,
pub pressure: f64,
pub relative_humidity: f64,
pub infrared: Option<f64>,
pub wind_direction: Option<f64>,
pub temp_dew: Option<f64>,
pub albedo: Option<f64>,
pub precipitable_water: Option<f64>,
pub year: Option<i32>,
pub month: Option<u32>,
pub day: Option<u32>,
pub hour: Option<u32>,
}Expand description
A single hourly weather observation.
Fields§
§time: StringTimestamp string as returned by PVGIS (e.g. “20050101:0010”).
ghi: f64Global horizontal irradiance (W/m²).
dni: f64Direct normal irradiance (W/m²).
dhi: f64Diffuse horizontal irradiance (W/m²).
temp_air: f64Air temperature at 2 m (°C).
wind_speed: f64Wind speed at 10 m (m/s).
pressure: f64Surface pressure (Pa or mbar depending on source).
relative_humidity: f64Relative humidity (%).
infrared: Option<f64>Infrared radiation downwards (W/m²), if available.
wind_direction: Option<f64>Wind direction at 10 m (°), if available.
temp_dew: Option<f64>Dew-point temperature (°C), if available.
albedo: Option<f64>Albedo (unitless), if available.
precipitable_water: Option<f64>Precipitable water (cm), if available.
year: Option<i32>Year from the data file.
month: Option<u32>Month from the data file.
day: Option<u32>Day from the data file.
hour: Option<u32>Hour from the data file (0-23).
Trait Implementations§
Source§impl Clone for WeatherRecord
impl Clone for WeatherRecord
Source§fn clone(&self) -> WeatherRecord
fn clone(&self) -> WeatherRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WeatherRecord
impl RefUnwindSafe for WeatherRecord
impl Send for WeatherRecord
impl Sync for WeatherRecord
impl Unpin for WeatherRecord
impl UnsafeUnpin for WeatherRecord
impl UnwindSafe for WeatherRecord
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