diff --git a/src/free_api_v25/current/weather.rs b/src/free_api_v25/current/weather.rs index 9c37cb1..a09113b 100644 --- a/src/free_api_v25/current/weather.rs +++ b/src/free_api_v25/current/weather.rs @@ -1,3 +1,5 @@ +use serde::{Deserialize, Serialize}; + /// Weather condition information /// /// Contains details about current weather conditions including @@ -18,7 +20,7 @@ pub struct Weather { /// /// This field can be localized based on the API request. pub description: String, - + /// Weather icon ID (for retrieving icon assets) /// /// Combine with base URL: `https://openweathermap.org/img/wn/{icon}@2x.png` @@ -48,4 +50,4 @@ impl Weather { pub fn icon_url(&self) -> String { format!("https://openweathermap.org/img/wn/{}@2x.png", self.icon) } -} \ No newline at end of file +}