pub enum Action {
AddBot {
bot_id: String,
api_sender: Sender<ApiChannelItem>,
action_sender: ActionSender,
api_resp_watcher: Receiver<ApiResp>,
},
RemoveBot {
bot_id: String,
},
ChangeBotConfig {
bot_id: String,
bot_config: BotConfig,
},
}Expand description
Nonebot 内部设置项
Variants§
AddBot
添加 Bot
RemoveBot
移除 Bot
ChangeBotConfig
变更 BotConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl !RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl !UnwindSafe for Action
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