pub struct CommandFilter { /* private fields */ }Expand description
Passes when the message is a bot command matching command.
The check is case-insensitive and strips the leading / and any
@BotName suffix automatically.
Implementations§
Trait Implementations§
Source§impl Clone for CommandFilter
impl Clone for CommandFilter
Source§fn clone(&self) -> CommandFilter
fn clone(&self) -> CommandFilter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CommandFilter
impl RefUnwindSafe for CommandFilter
impl Send for CommandFilter
impl Sync for CommandFilter
impl Unpin for CommandFilter
impl UnsafeUnpin for CommandFilter
impl UnwindSafe for CommandFilter
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