summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9d85c3e..5dc4925 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,11 +1,21 @@
use serde::Deserialize;
-#[derive(Debug)]
+#[derive(Debug, Default)]
pub struct PrinterState {
pub name: String,
pub bed_temp: f32,
}
+#[derive(Deserialize)]
+pub struct BambuState {
+ pub bed_temper: f32,
+}
+
+#[derive(Deserialize)]
+pub struct BambuMessage {
+ pub print: BambuState,
+}
+
#[derive(Debug, Deserialize)]
pub struct Config {
// This allows you to have a list of different printer types