pub async fn load_report(
config: &WeatherConfig,
query: Option<&str>,
) -> Result<WeatherReport>Expand description
Resolve a location and load its complete forecast in one call.
use weatherman_core::{load_report, WeatherConfig};
let report = load_report(&WeatherConfig::default(), Some("Berlin")).await?;
println!("{} — {} hours", report.location.name, report.hourly.len());