pub enum BotState {
Enabled,
Disabled,
PendingApproval,
Crashed,
}Expand description
state of an installed bot.
Variants§
Enabled
Running.
Disabled
Stopped by the owner or the operator.
PendingApproval
An update waits for the owner to grant more.
Crashed
Stopped after repeated crashes.
Trait Implementations§
impl Copy for BotState
Source§impl<'de> Deserialize<'de> for BotState
impl<'de> Deserialize<'de> for BotState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BotState
impl StructuralPartialEq for BotState
Auto Trait Implementations§
impl Freeze for BotState
impl RefUnwindSafe for BotState
impl Send for BotState
impl Sync for BotState
impl Unpin for BotState
impl UnsafeUnpin for BotState
impl UnwindSafe for BotState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more