pub struct EnvironmentState {
pub health: EnvironmentHealth,
pub pressure: EnvironmentPressure,
pub stability: StabilityAssessment,
pub incidents: Vec<ActiveIncident>,
pub degradations: Vec<String>,
pub mood: EnvironmentMood,
pub last_sensed: i64,
}Expand description
Current state of the environment.
Fields§
§health: EnvironmentHealth§pressure: EnvironmentPressure§stability: StabilityAssessment§incidents: Vec<ActiveIncident>§degradations: Vec<String>§mood: EnvironmentMood§last_sensed: i64Trait Implementations§
Source§impl Clone for EnvironmentState
impl Clone for EnvironmentState
Source§fn clone(&self) -> EnvironmentState
fn clone(&self) -> EnvironmentState
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 EnvironmentState
impl Debug for EnvironmentState
Source§impl<'de> Deserialize<'de> for EnvironmentState
impl<'de> Deserialize<'de> for EnvironmentState
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 EnvironmentState
impl RefUnwindSafe for EnvironmentState
impl Send for EnvironmentState
impl Sync for EnvironmentState
impl Unpin for EnvironmentState
impl UnsafeUnpin for EnvironmentState
impl UnwindSafe for EnvironmentState
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