feat: add property_control.rs

This commit is contained in:
Strix 2023-10-15 18:06:21 +02:00
parent e4b508ae86
commit 3b6b5d7548
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
2 changed files with 16 additions and 0 deletions

View file

@ -1,5 +1,6 @@
use crate::packet::packet_data::PacketData;
pub mod node_management;
pub mod property_control;
pub trait Command: Into<PacketData> + From<PacketData> {}

View file

@ -0,0 +1,15 @@
use crate::packet::data_types::DataType;
pub enum PropertyControl {
Get {
property_name: String,
data: DataType
},
Set {
property_name: String,
data: DataType
},
Reset {
property_name: String,
}
}