pub enum WeatherQueryResult {
CurrentWeather(Box<CurrentWeather>),
MinuteForecast(Option<Box<MinuteForecastCollection>>),
HourlyForecast(Box<HourlyForecast>),
DailyForecast(Box<DailyForecast>),
WeatherAlerts(Vec<WeatherAlert>),
Availability(Box<WeatherAvailability>),
WeatherChanges(Option<Box<WeatherChanges>>),
HistoricalComparisons(Option<Box<HistoricalComparisons>>),
}Expand description
Wraps a WeatherKit query result.
Variants§
CurrentWeather(Box<CurrentWeather>)
Carries the WeatherKit current weather payload.
MinuteForecast(Option<Box<MinuteForecastCollection>>)
Carries the optional WeatherKit minute forecast payload.
HourlyForecast(Box<HourlyForecast>)
Carries the WeatherKit hourly forecast payload.
DailyForecast(Box<DailyForecast>)
Carries the WeatherKit daily forecast payload.
WeatherAlerts(Vec<WeatherAlert>)
Carries the WeatherKit weather alerts payload.
Availability(Box<WeatherAvailability>)
Carries the WeatherKit availability payload.
WeatherChanges(Option<Box<WeatherChanges>>)
Carries the optional WeatherKit weather changes payload.
HistoricalComparisons(Option<Box<HistoricalComparisons>>)
Carries the optional WeatherKit historical comparisons payload.
Trait Implementations§
Source§impl Clone for WeatherQueryResult
impl Clone for WeatherQueryResult
Source§fn clone(&self) -> WeatherQueryResult
fn clone(&self) -> WeatherQueryResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WeatherQueryResult
impl Debug for WeatherQueryResult
Source§impl PartialEq for WeatherQueryResult
impl PartialEq for WeatherQueryResult
Source§fn eq(&self, other: &WeatherQueryResult) -> bool
fn eq(&self, other: &WeatherQueryResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WeatherQueryResult
Auto Trait Implementations§
impl Freeze for WeatherQueryResult
impl RefUnwindSafe for WeatherQueryResult
impl Send for WeatherQueryResult
impl Sync for WeatherQueryResult
impl Unpin for WeatherQueryResult
impl UnsafeUnpin for WeatherQueryResult
impl UnwindSafe for WeatherQueryResult
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