fix: forgot to add state code :p

This commit is contained in:
Strix 2024-01-04 20:13:14 +01:00
parent f17bd20516
commit ac84f0db70
No known key found for this signature in database
GPG key ID: 5F35B3B8537287A7
2 changed files with 22 additions and 0 deletions

18
domo_lib/src/state/mod.rs Normal file
View file

@ -0,0 +1,18 @@
pub mod state_properties;
pub struct State {
pub state_properties: Vec<state_properties::StateProperties>
}
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);
}

View file

@ -0,0 +1,4 @@
use domo_proto::identifier::Identifier;
use crate::node::property::Property;
pub struct StateProperties(pub Identifier, pub Property);