added method to upload filesystem images
All checks were successful
Build Project / test (push) Successful in 5m58s

This commit is contained in:
2025-02-18 20:47:31 +00:00
parent a5e374b79f
commit 5e0ba37bc7
6 changed files with 81 additions and 40 deletions

View File

@@ -87,12 +87,15 @@ pub struct OTAConfiguration {
#[strum(serialize_all = "snake_case")]
pub enum BoardType {
Waterlevel,
WaterlevelFilesystem,
}
#[derive(serde::Serialize, EnumString, PartialEq, Debug, Display)]
#[strum(ascii_case_insensitive, serialize_all = "snake_case")]
pub enum BoardConfig {
INA226,
INA233,
Generic,
}
pub struct AppState {
@@ -104,4 +107,11 @@ pub struct AppState {
#[derive(Serialize, Deserialize, Debug)]
pub struct DeviceMetadata {
pub display_name: String,
}
#[derive(EnumString, PartialEq, Debug, Display, Serialize)]
#[strum(ascii_case_insensitive, serialize_all = "snake_case")]
pub enum Services {
Firmware,
Filesystem,
}