pub struct BotBuilder { /* private fields */ }Implementations§
Source§impl BotBuilder
impl BotBuilder
pub fn new(client: Client) -> Self
pub fn with_router(self, router: Router) -> Self
pub fn with_scheduler(self, scheduler: Scheduler) -> Self
pub fn with_state_store(self, store: impl StateStore + 'static) -> Self
pub fn with_boxed_state_store(self, store: Box<dyn StateStore>) -> Self
pub fn with_config(self, config: BotConfig) -> Self
pub fn build(self) -> Bot
Auto Trait Implementations§
impl !Freeze for BotBuilder
impl !RefUnwindSafe for BotBuilder
impl Send for BotBuilder
impl !Sync for BotBuilder
impl Unpin for BotBuilder
impl UnsafeUnpin for BotBuilder
impl !UnwindSafe for BotBuilder
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more