pub struct WeatherContext {
pub temperature_c: Option<f64>,
pub humidity_pct: Option<f64>,
pub condition: Option<String>,
pub wind_speed_mps: Option<f64>,
pub visibility_m: Option<f64>,
pub affects_operation: Option<bool>,
}Expand description
Weather-related context.
Fields§
§temperature_c: Option<f64>Temperature (Celsius)
humidity_pct: Option<f64>Humidity (percentage)
condition: Option<String>Weather condition
wind_speed_mps: Option<f64>Wind speed (m/s)
visibility_m: Option<f64>Visibility (meters)
affects_operation: Option<bool>Whether conditions affect outdoor operation
Trait Implementations§
Source§impl Clone for WeatherContext
impl Clone for WeatherContext
Source§fn clone(&self) -> WeatherContext
fn clone(&self) -> WeatherContext
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 WeatherContext
impl Debug for WeatherContext
Source§impl Default for WeatherContext
impl Default for WeatherContext
Source§fn default() -> WeatherContext
fn default() -> WeatherContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WeatherContext
impl<'de> Deserialize<'de> for WeatherContext
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WeatherContext
impl RefUnwindSafe for WeatherContext
impl Send for WeatherContext
impl Sync for WeatherContext
impl Unpin for WeatherContext
impl UnwindSafe for WeatherContext
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