pub struct TemperatureAndRelativeHumidity {
pub relative_humidity: f32,
pub temperature: f32,
pub temperature_unit: TemperatureUnit,
}Expand description
The combination of the temperature and the relative humidity.
Fields§
§relative_humidity: f32The relative humidity (in %).
temperature: f32The temperature (either in °C or °F according to the temperature unit given in the temperature_unit field).
temperature_unit: TemperatureUnitThe temperature unit used for the measurement.
Trait Implementations§
source§impl Clone for TemperatureAndRelativeHumidity
impl Clone for TemperatureAndRelativeHumidity
source§fn clone(&self) -> TemperatureAndRelativeHumidity
fn clone(&self) -> TemperatureAndRelativeHumidity
Returns a copy 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 Default for TemperatureAndRelativeHumidity
impl Default for TemperatureAndRelativeHumidity
source§fn default() -> TemperatureAndRelativeHumidity
fn default() -> TemperatureAndRelativeHumidity
Returns the “default value” for a type. Read more
impl Copy for TemperatureAndRelativeHumidity
Auto Trait Implementations§
impl RefUnwindSafe for TemperatureAndRelativeHumidity
impl Send for TemperatureAndRelativeHumidity
impl Sync for TemperatureAndRelativeHumidity
impl Unpin for TemperatureAndRelativeHumidity
impl UnwindSafe for TemperatureAndRelativeHumidity
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