pub struct BotContext {
pub http: Client,
pub github: Client,
}Expand description
Clients the handlers need, shared behind an Arc across event tasks.
Fields§
§http: ClientDiscord REST API client.
github: ClientShared client for raw.githubusercontent.com fetches.
Auto Trait Implementations§
impl !RefUnwindSafe for BotContext
impl !UnwindSafe for BotContext
impl Forget for BotContext
impl Freeze for BotContext
impl Move for BotContext
impl Send for BotContext
impl Sync for BotContext
impl Unpin for BotContext
impl UnsafeUnpin for BotContext
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