diff --git a/domo_lib/src/state/mod.rs b/domo_lib/src/state/mod.rs new file mode 100644 index 0000000..c0acc3f --- /dev/null +++ b/domo_lib/src/state/mod.rs @@ -0,0 +1,18 @@ +pub mod state_properties; +pub struct State { + pub state_properties: Vec +} + +impl State { + pub fn new() -> State { + State { state_properties: vec![] } + } +} + +pub trait GetState { + fn get_state(&self) -> State; +} + +pub trait ApplyState { + fn apply_state(&mut self, state: State); +} \ No newline at end of file diff --git a/domo_lib/src/state/state_properties.rs b/domo_lib/src/state/state_properties.rs new file mode 100644 index 0000000..4f4281d --- /dev/null +++ b/domo_lib/src/state/state_properties.rs @@ -0,0 +1,4 @@ +use domo_proto::identifier::Identifier; +use crate::node::property::Property; + +pub struct StateProperties(pub Identifier, pub Property); \ No newline at end of file