Expand description
§use-weather-forecast
Primitive forecast vocabulary.
use-weather-forecast models forecast identifiers, forecast kinds, forecast confidence labels, forecast horizons, and descriptive forecast periods. It does not generate forecasts, fetch forecast data, score forecast skill, or implement alerting systems.
use use_weather_forecast::{ForecastConfidence, ForecastHorizon, ForecastId, ForecastKind};
let identifier = ForecastId::new("short-range-001").unwrap();
let horizon = ForecastHorizon::new(24);
assert_eq!(identifier.as_str(), "short-range-001");
assert_eq!(horizon.hours(), 24);
assert_eq!(ForecastKind::ShortRange.to_string(), "short-range");
assert_eq!(ForecastConfidence::High.to_string(), "high");Structs§
- Forecast
Horizon - Forecast horizon stored as hours.
- Forecast
Id - A non-empty forecast identifier.
- Forecast
Period - A non-empty descriptive forecast period label.
Enums§
- Forecast
Confidence - Stable forecast confidence vocabulary.
- Forecast
Confidence Parse Error - Error returned when parsing forecast confidence fails.
- Forecast
Kind - Stable forecast kind vocabulary.
- Forecast
Kind Parse Error - Error returned when parsing forecast kinds fails.
- Forecast
Value Error - Errors returned by forecast constructors.