use serde_repr::{Deserialize_repr, Serialize_repr};
#[derive(
Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize_repr, Deserialize_repr,
)]
#[repr(u8)]
pub enum BotState {
Deactivated = 0,
Active = 1,
Suspended = 2,
}
impl ToString for BotState {
fn to_string(&self) -> String {
match self {
Self::Deactivated => String::from("0"),
Self::Active => String::from("1"),
Self::Suspended => String::from("2"),
}
}
}
impl Default for BotState {
fn default() -> BotState {
Self::Deactivated
}
}