pub struct BotOptions {
pub base_url: Option<String>,
pub cred_path: Option<String>,
pub on_qr_url: Option<Box<dyn Fn(&str) + Send + Sync>>,
pub on_error: Option<Box<dyn Fn(&WeChatBotError) + Send + Sync>>,
}Expand description
Bot configuration options.
Fields§
§base_url: Option<String>§cred_path: Option<String>§on_qr_url: Option<Box<dyn Fn(&str) + Send + Sync>>§on_error: Option<Box<dyn Fn(&WeChatBotError) + Send + Sync>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for BotOptions
impl !RefUnwindSafe for BotOptions
impl Send for BotOptions
impl Sync for BotOptions
impl Unpin for BotOptions
impl UnsafeUnpin for BotOptions
impl !UnwindSafe for BotOptions
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