pub struct Event {Show 14 fields
pub type_: String,
pub event: String,
pub resource: String,
pub id: String,
pub uniqueid: String,
pub gid: Option<String>,
pub scid: Option<String>,
pub config: Option<SensorConfig>,
pub name: Option<String>,
pub state: HashMap<String, Value>,
pub group: HashMap<String, Value>,
pub light: HashMap<String, Value>,
pub sensor: HashMap<String, Value>,
pub attr: Option<Sensor>,
}Expand description
Websocket event from deCONZ for Conbee2
Fields§
§type_: String§event: String§resource: String§id: String§uniqueid: String§gid: Option<String>§scid: Option<String>§config: Option<SensorConfig>§name: Option<String>§state: HashMap<String, Value>§group: HashMap<String, Value>§light: HashMap<String, Value>§sensor: HashMap<String, Value>§attr: Option<Sensor>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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