pub struct CurrentWeather {Show 17 fields
pub date: String,
pub temperature: f64,
pub feels_like: f64,
pub humidity: f64,
pub dew_point: f64,
pub pressure: f64,
pub pressure_trend: PressureTrend,
pub condition: WeatherCondition,
pub symbol_name: String,
pub wind: Wind,
pub uv_index: UVIndex,
pub visibility: f64,
pub cloud_cover: f64,
pub cloud_cover_by_altitude: Option<CloudCoverByAltitude>,
pub is_daylight: bool,
pub precipitation_intensity: f64,
pub metadata: WeatherMetadata,
}Expand description
Wraps the WeatherKit current weather payload.
Fields§
§date: StringMatches the WeatherKit date value.
temperature: f64Matches the WeatherKit temperature value.
feels_like: f64Matches the WeatherKit feels like value.
humidity: f64Matches the WeatherKit humidity value.
dew_point: f64Matches the WeatherKit dew point value.
pressure: f64Matches the WeatherKit pressure value.
pressure_trend: PressureTrendMatches the WeatherKit pressure trend value.
condition: WeatherConditionMatches the WeatherKit condition value.
symbol_name: StringMatches the WeatherKit symbol name value.
wind: WindMatches the WeatherKit wind value.
uv_index: UVIndexMatches the WeatherKit uv index value.
visibility: f64Matches the WeatherKit visibility value.
cloud_cover: f64Matches the WeatherKit cloud cover value.
cloud_cover_by_altitude: Option<CloudCoverByAltitude>Matches the WeatherKit cloud cover by altitude value.
is_daylight: boolMatches the WeatherKit is daylight value.
precipitation_intensity: f64Matches the WeatherKit precipitation intensity value.
metadata: WeatherMetadataMatches the WeatherKit metadata value.
Implementations§
Source§impl CurrentWeather
impl CurrentWeather
Sourcepub fn pressure_reading(&self) -> Pressure
pub fn pressure_reading(&self) -> Pressure
Wraps the WeatherKit pressure value and trend.
Trait Implementations§
Source§impl Clone for CurrentWeather
impl Clone for CurrentWeather
Source§fn clone(&self) -> CurrentWeather
fn clone(&self) -> CurrentWeather
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CurrentWeather
impl Debug for CurrentWeather
Source§impl<'de> Deserialize<'de> for CurrentWeather
impl<'de> Deserialize<'de> for CurrentWeather
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>,
Source§impl PartialEq for CurrentWeather
impl PartialEq for CurrentWeather
Source§fn eq(&self, other: &CurrentWeather) -> bool
fn eq(&self, other: &CurrentWeather) -> bool
self and other values to be equal, and is used by ==.