pub struct WeatherEvent {
pub event_type: String,
pub severity: f64,
pub timestamp: i64,
pub duration_secs: Option<u64>,
pub description: String,
}Expand description
A weather event in the environment.
Fields§
§event_type: String§severity: f64§timestamp: i64§duration_secs: Option<u64>§description: StringTrait Implementations§
Source§impl Clone for WeatherEvent
impl Clone for WeatherEvent
Source§fn clone(&self) -> WeatherEvent
fn clone(&self) -> WeatherEvent
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 WeatherEvent
impl Debug for WeatherEvent
Source§impl<'de> Deserialize<'de> for WeatherEvent
impl<'de> Deserialize<'de> for WeatherEvent
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 WeatherEvent
impl RefUnwindSafe for WeatherEvent
impl Send for WeatherEvent
impl Sync for WeatherEvent
impl Unpin for WeatherEvent
impl UnsafeUnpin for WeatherEvent
impl UnwindSafe for WeatherEvent
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