pub struct Framework { /* private fields */ }
Expand description
A utility for easily managing commands.
Refer to the module-level documentation for more detail
Implementations§
source§impl Framework
impl Framework
sourcepub fn add_command(&mut self, command: &TelegramCommand)
pub fn add_command(&mut self, command: &TelegramCommand)
add a command to the registered commands
sourcepub fn get_commands(&self) -> &Vec<TelegramCommand>
pub fn get_commands(&self) -> &Vec<TelegramCommand>
get all registered commands
sourcepub fn fire_commands(&self, context: Context, update: Update)
pub fn fire_commands(&self, context: Context, update: Update)
fires off all commands matching the content in the update
Auto Trait Implementations§
impl RefUnwindSafe for Framework
impl Send for Framework
impl Sync for Framework
impl Unpin for Framework
impl UnwindSafe for Framework
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