pub enum WeatherQuery {
Current,
Minute,
Hourly,
HourlyIn(DateInterval),
Daily,
DailyIn(DateInterval),
Alerts,
Availability,
Changes,
HistoricalComparisons,
}Expand description
Describes a WeatherKit query to fetch.
Variants§
Current
Requests the WeatherKit current weather payload.
Minute
Requests the WeatherKit minute forecast payload.
Hourly
Requests the WeatherKit hourly forecast payload.
HourlyIn(DateInterval)
Requests the WeatherKit hourly forecast for the supplied interval.
Daily
Requests the WeatherKit daily forecast payload.
DailyIn(DateInterval)
Requests the WeatherKit daily forecast for the supplied interval.
Alerts
Requests the WeatherKit weather alerts payload.
Availability
Requests the WeatherKit availability payload.
Changes
Requests the WeatherKit weather changes payload.
HistoricalComparisons
Requests the WeatherKit historical comparisons payload.
Trait Implementations§
Source§impl Clone for WeatherQuery
impl Clone for WeatherQuery
Source§fn clone(&self) -> WeatherQuery
fn clone(&self) -> WeatherQuery
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 WeatherQuery
impl Debug for WeatherQuery
Source§impl PartialEq for WeatherQuery
impl PartialEq for WeatherQuery
Source§fn eq(&self, other: &WeatherQuery) -> bool
fn eq(&self, other: &WeatherQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WeatherQuery
impl StructuralPartialEq for WeatherQuery
Auto Trait Implementations§
impl Freeze for WeatherQuery
impl RefUnwindSafe for WeatherQuery
impl Send for WeatherQuery
impl Sync for WeatherQuery
impl Unpin for WeatherQuery
impl UnsafeUnpin for WeatherQuery
impl UnwindSafe for WeatherQuery
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