Architectural changes and added first basic implementation for handling queries (does not handle errors)

This commit is contained in:
2022-12-15 05:04:04 +01:00
parent 4de0b31ec8
commit 995ff08784
10 changed files with 154 additions and 57 deletions

View File

@@ -31,13 +31,5 @@ pub enum ResponsePayload {
#[derive(Debug, Default, Serialize)]
#[serde(rename_all = "camelCase")]
pub struct State {
on: Option<bool>,
pub on: Option<bool>,
}
impl State {
fn on(mut self, state: bool) -> Self {
self.on = Some(state);
self
}
}