pub struct WeatherFields<'a> {
pub timestamp: Option<&'a [u8]>,
pub wind_direction_degrees: Option<u16>,
pub wind_speed_mph: Option<u16>,
pub wind_gust_mph: Option<u16>,
pub temperature_fahrenheit: Option<i16>,
pub rain_last_hour_hundredths_inch: Option<u16>,
pub rain_last_24_hours_hundredths_inch: Option<u16>,
pub rain_since_midnight_hundredths_inch: Option<u16>,
pub humidity_percent: Option<u16>,
pub pressure_tenths_hpa: Option<u16>,
}Expand description
Extracted numeric weather fields.
Fields§
§timestamp: Option<&'a [u8]>Optional six-byte timestamp prefix.
wind_direction_degrees: Option<u16>Wind direction in degrees.
wind_speed_mph: Option<u16>Sustained wind speed in miles per hour.
wind_gust_mph: Option<u16>Wind gust speed in miles per hour.
temperature_fahrenheit: Option<i16>Temperature in degrees Fahrenheit.
rain_last_hour_hundredths_inch: Option<u16>Rain in the last hour, in hundredths of an inch.
rain_last_24_hours_hundredths_inch: Option<u16>Rain in the last 24 hours, in hundredths of an inch.
rain_since_midnight_hundredths_inch: Option<u16>Rain since midnight, in hundredths of an inch.
humidity_percent: Option<u16>Relative humidity percent.
pressure_tenths_hpa: Option<u16>Barometric pressure in tenths of hPa.
Trait Implementations§
Source§impl<'a> Clone for WeatherFields<'a>
impl<'a> Clone for WeatherFields<'a>
Source§fn clone(&self) -> WeatherFields<'a>
fn clone(&self) -> WeatherFields<'a>
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<'a> Debug for WeatherFields<'a>
impl<'a> Debug for WeatherFields<'a>
Source§impl<'a> PartialEq for WeatherFields<'a>
impl<'a> PartialEq for WeatherFields<'a>
impl<'a> Copy for WeatherFields<'a>
impl<'a> Eq for WeatherFields<'a>
impl<'a> StructuralPartialEq for WeatherFields<'a>
Auto Trait Implementations§
impl<'a> Freeze for WeatherFields<'a>
impl<'a> RefUnwindSafe for WeatherFields<'a>
impl<'a> Send for WeatherFields<'a>
impl<'a> Sync for WeatherFields<'a>
impl<'a> Unpin for WeatherFields<'a>
impl<'a> UnsafeUnpin for WeatherFields<'a>
impl<'a> UnwindSafe for WeatherFields<'a>
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