pub enum AirQualityLevel {
Good,
Moderate,
UnhealthySensitive,
Unhealthy,
VeryUnhealthy,
Hazardous,
}Expand description
Represents the human-friendly interpretation of the AQI
Variants§
Good
The air quality is good and safe for everyone
Moderate
The air quality is moderate, but unusually sensitive people should avoid heavy outdoor exertion
UnhealthySensitive
The air quality is unhealthy for those with respiratory issues or other health problems
Unhealthy
The air quality is unhealthy for everyone
VeryUnhealthy
The air quality is very unhealthy for everyone
Hazardous
The air quality is hazardous and everyone should avoid outdoor exertion
Trait Implementations§
Source§impl Clone for AirQualityLevel
impl Clone for AirQualityLevel
Source§fn clone(&self) -> AirQualityLevel
fn clone(&self) -> AirQualityLevel
Returns a duplicate of the value. Read more
1.0.0 · 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 AirQualityLevel
impl Debug for AirQualityLevel
Source§impl Display for AirQualityLevel
impl Display for AirQualityLevel
Source§impl PartialEq for AirQualityLevel
impl PartialEq for AirQualityLevel
Source§impl TryFrom<i16> for AirQualityLevel
impl TryFrom<i16> for AirQualityLevel
Source§type Error = AirQualityError
type Error = AirQualityError
The type returned in the event of a conversion error.
Source§fn try_from(v: i16) -> Result<AirQualityLevel, AirQualityError>
fn try_from(v: i16) -> Result<AirQualityLevel, AirQualityError>
Performs the conversion.
Source§impl TryFrom<i32> for AirQualityLevel
impl TryFrom<i32> for AirQualityLevel
Source§type Error = AirQualityError
type Error = AirQualityError
The type returned in the event of a conversion error.
Source§fn try_from(v: i32) -> Result<AirQualityLevel, AirQualityError>
fn try_from(v: i32) -> Result<AirQualityLevel, AirQualityError>
Performs the conversion.
Source§impl TryFrom<i64> for AirQualityLevel
impl TryFrom<i64> for AirQualityLevel
Source§type Error = AirQualityError
type Error = AirQualityError
The type returned in the event of a conversion error.
Source§fn try_from(v: i64) -> Result<AirQualityLevel, AirQualityError>
fn try_from(v: i64) -> Result<AirQualityLevel, AirQualityError>
Performs the conversion.
Source§impl TryFrom<u16> for AirQualityLevel
impl TryFrom<u16> for AirQualityLevel
Source§type Error = AirQualityError
type Error = AirQualityError
The type returned in the event of a conversion error.
Source§fn try_from(v: u16) -> Result<AirQualityLevel, AirQualityError>
fn try_from(v: u16) -> Result<AirQualityLevel, AirQualityError>
Performs the conversion.
Source§impl TryFrom<u32> for AirQualityLevel
impl TryFrom<u32> for AirQualityLevel
Source§type Error = AirQualityError
type Error = AirQualityError
The type returned in the event of a conversion error.
Source§fn try_from(v: u32) -> Result<AirQualityLevel, AirQualityError>
fn try_from(v: u32) -> Result<AirQualityLevel, AirQualityError>
Performs the conversion.
Source§impl TryFrom<u64> for AirQualityLevel
impl TryFrom<u64> for AirQualityLevel
Source§type Error = AirQualityError
type Error = AirQualityError
The type returned in the event of a conversion error.
Source§fn try_from(v: u64) -> Result<AirQualityLevel, AirQualityError>
fn try_from(v: u64) -> Result<AirQualityLevel, AirQualityError>
Performs the conversion.
impl Copy for AirQualityLevel
impl Eq for AirQualityLevel
impl StructuralPartialEq for AirQualityLevel
Auto Trait Implementations§
impl Freeze for AirQualityLevel
impl RefUnwindSafe for AirQualityLevel
impl Send for AirQualityLevel
impl Sync for AirQualityLevel
impl Unpin for AirQualityLevel
impl UnwindSafe for AirQualityLevel
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