summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorSerguey Parkhomovsky <xindigo@gmail.com>2026-03-09 15:01:32 -0700
committerSerguey Parkhomovsky <xindigo@gmail.com>2026-03-09 15:01:32 -0700
commit49284eaf9a57f1756f4893dc30dce81d470f0fd3 (patch)
tree11e535278f6defa7899082d3478a8c9eeeb94770 /src/lib.rs
parent68e7be4a897a1d8440d54e0c926796e1083409a9 (diff)
Connect to bambu printers
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