#[non_exhaustive]pub enum AvailabilityKind {
Available,
TemporarilyUnavailable,
Unsupported,
Unknown(String),
}Expand description
Represents the WeatherKit AvailabilityKind value.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Available
Matches the WeatherKit Available case.
Matches the WeatherKit TemporarilyUnavailable case.
Unsupported
Matches the WeatherKit Unsupported case.
Unknown(String)
Stores an unrecognized WeatherKit case name.
Implementations§
Source§impl AvailabilityKind
impl AvailabilityKind
Sourcepub fn descriptors() -> Result<Vec<AvailabilityKindDescriptor>, WeatherKitError>
pub fn descriptors() -> Result<Vec<AvailabilityKindDescriptor>, WeatherKitError>
Returns the WeatherKit descriptor catalog for this enum.
Trait Implementations§
Source§impl Clone for AvailabilityKind
impl Clone for AvailabilityKind
Source§fn clone(&self) -> AvailabilityKind
fn clone(&self) -> AvailabilityKind
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 AvailabilityKind
impl Debug for AvailabilityKind
Source§impl PartialEq for AvailabilityKind
impl PartialEq for AvailabilityKind
Source§fn eq(&self, other: &AvailabilityKind) -> bool
fn eq(&self, other: &AvailabilityKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AvailabilityKind
impl StructuralPartialEq for AvailabilityKind
Auto Trait Implementations§
impl Freeze for AvailabilityKind
impl RefUnwindSafe for AvailabilityKind
impl Send for AvailabilityKind
impl Sync for AvailabilityKind
impl Unpin for AvailabilityKind
impl UnsafeUnpin for AvailabilityKind
impl UnwindSafe for AvailabilityKind
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