Store devices wrapped in Arc RwLock

This commit is contained in:
2023-08-11 02:24:58 +02:00
parent 7733e8cc8f
commit 330523166f
13 changed files with 538 additions and 457 deletions

View File

@@ -20,7 +20,7 @@ pub struct Device {
// customData
}
#[derive(Debug, Deserialize)]
#[derive(Debug, Deserialize, Clone, Copy)]
#[serde(tag = "command", content = "params")]
pub enum CommandType {
#[serde(rename = "action.devices.commands.OnOff")]