pub struct Weather {
pub current_weather: CurrentWeather,
pub hourly_forecast: Vec<HourForecast>,
pub daily_forecast: Vec<DayForecast>,
pub minute_forecast: Option<Vec<MinuteForecast>>,
pub weather_alerts: Vec<WeatherAlert>,
pub availability: WeatherAvailability,
}Expand description
Represents the aggregate WeatherKit weather payload.
Fields§
§current_weather: CurrentWeatherMatches the WeatherKit current weather value.
hourly_forecast: Vec<HourForecast>Matches the WeatherKit hourly forecast value.
daily_forecast: Vec<DayForecast>Matches the WeatherKit daily forecast value.
minute_forecast: Option<Vec<MinuteForecast>>Matches the WeatherKit minute forecast value.
weather_alerts: Vec<WeatherAlert>Matches the WeatherKit weather alerts value.
availability: WeatherAvailabilityMatches the WeatherKit availability value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Weather
impl<'de> Deserialize<'de> for Weather
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Weather
Auto Trait Implementations§
impl Freeze for Weather
impl RefUnwindSafe for Weather
impl Send for Weather
impl Sync for Weather
impl Unpin for Weather
impl UnsafeUnpin for Weather
impl UnwindSafe for Weather
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more