Work on tree

This commit is contained in:
Michael Mikovsky
2025-12-23 23:09:05 -07:00
parent 1d7845e725
commit ce9776dae7
9 changed files with 97 additions and 104 deletions
+1 -29
View File
@@ -1,9 +1,8 @@
use serde::{Deserialize, Serialize};
use serde_json::{Value, json};
use crate::{
ModuleError, Result,
config::{InterfaceData, InterfaceStruct, TreeMessage},
config::{ConfigStructField, InterfaceData, InterfaceStruct, TreeMessage},
warn,
};
@@ -55,30 +54,3 @@ impl Config {
}
}
}
#[derive(Debug, Clone, Deserialize, Serialize)]
pub enum ConfigStructField {
Header(String),
Text(String),
String {
// Default value of string edit in struct
#[serde(default)]
default: String,
max_length: Option<usize>,
// Display string edit as password
#[serde(default)]
protected: Option<bool>,
},
Integer {
// Default value of integer in struct
#[serde(default)]
default: i32,
min: Option<i32>,
max: Option<i32>,
},
// Checkbox
// Dropdown
// Collapsing header
// Slider
// ...
}