Struct weather_utils::TemperatureAndPressure
source · pub struct TemperatureAndPressure {
pub pressure: f32,
pub temperature: f32,
pub temperature_unit: TemperatureUnit,
}Expand description
The combination of the temperature and the barometric pressure.
Fields§
§pressure: f32The barometric pressure (in hPa).
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 TemperatureAndPressure
impl Clone for TemperatureAndPressure
source§fn clone(&self) -> TemperatureAndPressure
fn clone(&self) -> TemperatureAndPressure
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 Debug for TemperatureAndPressure
impl Debug for TemperatureAndPressure
source§impl Default for TemperatureAndPressure
impl Default for TemperatureAndPressure
source§fn default() -> TemperatureAndPressure
fn default() -> TemperatureAndPressure
Returns the “default value” for a type. Read more
impl Copy for TemperatureAndPressure
Auto Trait Implementations§
impl RefUnwindSafe for TemperatureAndPressure
impl Send for TemperatureAndPressure
impl Sync for TemperatureAndPressure
impl Unpin for TemperatureAndPressure
impl UnwindSafe for TemperatureAndPressure
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