forked from nolan/titlebot-ng-ng
change the status type to the enum
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user