pub struct AprsWeatherData {
pub wind_direction: Option<WindDirection>,
pub wind_speed: Option<WindSpeed>,
pub wind_gust: Option<WindSpeed>,
pub temperature: Option<Temperature>,
pub rain_last_hour: Option<Rainfall>,
pub rain_last_24h: Option<Rainfall>,
pub rain_since_midnight: Option<Rainfall>,
pub humidity: Option<Humidity>,
pub barometric_pressure: Option<Pressure>,
pub luminosity: Option<Luminosity>,
pub snow_last_24h: Option<Snowfall>,
pub raw_rain_counter: Option<u16>,
}Expand description
Weather data fields, parsed from either a position packet (symbol /_)
or a positionless weather report (DTI _).
Every field is an Option — not all transmitting stations send all fields.
Native APRS units are preserved; use the conversion methods on each type
to obtain SI or other values.
Fields§
§wind_direction: Option<WindDirection>Wind direction (degrees, 0=unknown). Native: degrees.
wind_speed: Option<WindSpeed>Sustained wind speed. Native: mph.
wind_gust: Option<WindSpeed>Peak wind gust in last 5 minutes. Native: mph.
temperature: Option<Temperature>Temperature. Native: °F.
rain_last_hour: Option<Rainfall>Rainfall in the last hour. Native: hundredths of an inch.
rain_last_24h: Option<Rainfall>Rainfall in the last 24 hours. Native: hundredths of an inch.
rain_since_midnight: Option<Rainfall>Rainfall since midnight. Native: hundredths of an inch.
humidity: Option<Humidity>Relative humidity 0–100 (wire 00 = 100%). Native: percent.
barometric_pressure: Option<Pressure>Barometric pressure. Native: tenths of a millibar.
luminosity: Option<Luminosity>Solar radiation. Native: W/m².
snow_last_24h: Option<Snowfall>Snowfall in the last 24 hours. Native: tenths of an inch.
raw_rain_counter: Option<u16>Raw rain counter (implementation-specific).
Implementations§
Trait Implementations§
Source§impl Clone for AprsWeatherData
impl Clone for AprsWeatherData
Source§fn clone(&self) -> AprsWeatherData
fn clone(&self) -> AprsWeatherData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AprsWeatherData
impl Debug for AprsWeatherData
Source§impl Default for AprsWeatherData
impl Default for AprsWeatherData
Source§fn default() -> AprsWeatherData
fn default() -> AprsWeatherData
Source§impl PartialEq for AprsWeatherData
impl PartialEq for AprsWeatherData
Source§fn eq(&self, other: &AprsWeatherData) -> bool
fn eq(&self, other: &AprsWeatherData) -> bool
self and other values to be equal, and is used by ==.