change the status type to the enum

This commit is contained in:
2026-05-08 16:36:02 -05:00
parent a8674ef0ad
commit bade2a1284
+2 -1
View File
@@ -26,7 +26,7 @@ pub struct MagbotConfig {
pub username: String,
pub password: String,
pub room_id: String,
pub status: Option<MagbotStatus>,
pub status: MagbotStatus,
}
impl MagbotConfig {
pub fn from_str(input: &str) -> anyhow::Result<Self> {
@@ -41,6 +41,7 @@ impl Default for MagbotConfig {
username: String::new(),
password: String::new(),
room_id: String::new(),
status: MagbotStatus::default(),
}
}
}