Fix module src/free_api_v25/current/weather.rs

This commit is contained in:
Candifloss 2025-10-10 00:40:06 +05:30
parent ee7820eb64
commit e9aa4cbd13

View File

@ -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)
}
}
}