Changes
All checks were successful
Build Project / test (push) Successful in 5m30s

This commit is contained in:
2025-01-19 17:08:49 +00:00
parent 92159bc276
commit acbb61131b
5 changed files with 224 additions and 208 deletions

View File

@@ -1,8 +1,12 @@
use std::path::PathBuf;
use chrono::NaiveDateTime;
use serde::{ser::SerializeStruct, Deserialize, Serialize};
use sqlx::types::mac_address::MacAddress;
use strum::{Display, EnumString};
use crate::database::Database;
#[derive(Deserialize, Debug, Serialize)]
pub struct TelemetryMessage {
pub uptime: i32,
@@ -89,3 +93,9 @@ pub enum BoardConfig {
INA226,
INA233,
}
pub struct AppState {
pub db: Database,
pub firmwares_path: PathBuf,
pub hostname: String,
}