diff --git a/src/free_api_v25/current/main.rs b/src/free_api_v25/current/main.rs index 2eb1542..d9f024c 100644 --- a/src/free_api_v25/current/main.rs +++ b/src/free_api_v25/current/main.rs @@ -9,24 +9,31 @@ pub struct Main { /// Temperature in requested units (Kelvin, Celsius, or Fahrenheit) #[serde(default)] pub temp: Option, + /// "Feels like" temperature, accounting for human perception of weather #[serde(default)] pub feels_like: Option, + /// Minimum observed temperature (within large urban areas) #[serde(default)] pub temp_min: Option, + /// Maximum observed temperature (within large urban areas) #[serde(default)] pub temp_max: Option, + /// Atmospheric pressure at sea level (hPa) #[serde(default)] pub pressure: Option, + /// Humidity percentage (0-100) #[serde(default)] pub humidity: Option, + /// Atmospheric pressure at sea level (hPa) #[serde(default)] pub sea_level: Option, + /// Atmospheric pressure at ground level (hPa) #[serde(default)] pub grnd_level: Option, diff --git a/src/free_api_v25/current/mod.rs b/src/free_api_v25/current/mod.rs index 7c1abfa..addf70e 100644 --- a/src/free_api_v25/current/mod.rs +++ b/src/free_api_v25/current/mod.rs @@ -20,4 +20,4 @@ pub mod coord; pub mod main; pub mod weather; -pub mod wind; \ No newline at end of file +pub mod wind; diff --git a/src/free_api_v25/current/wind.rs b/src/free_api_v25/current/wind.rs index 8199307..a84330b 100644 --- a/src/free_api_v25/current/wind.rs +++ b/src/free_api_v25/current/wind.rs @@ -15,7 +15,7 @@ pub struct Wind { /// - 270°: West #[serde(default)] pub deg: Option, - + /// Wind gust speed in chosen units #[serde(default)] pub gust: Option, @@ -44,4 +44,4 @@ impl Wind { let index = (((u32::from(deg) * 16 + 11) / 22) % 16) as usize; Some(directions[index]) } -} \ No newline at end of file +}