pub struct SlashCommandCompleter;Expand description
Slash command autocompleter
Trait Implementations§
Source§impl Autocomplete for SlashCommandCompleter
impl Autocomplete for SlashCommandCompleter
Source§fn get_suggestions(
&mut self,
input: &str,
) -> Result<Vec<String>, CustomUserError>
fn get_suggestions( &mut self, input: &str, ) -> Result<Vec<String>, CustomUserError>
List of input suggestions to be displayed to the user upon typing the
text input. Read more
Source§fn get_completion(
&mut self,
_input: &str,
highlighted_suggestion: Option<String>,
) -> Result<Replacement, CustomUserError>
fn get_completion( &mut self, _input: &str, highlighted_suggestion: Option<String>, ) -> Result<Replacement, CustomUserError>
Standalone autocompletion that can be implemented based solely on the user’s
input. Read more
Source§impl Clone for SlashCommandCompleter
impl Clone for SlashCommandCompleter
Source§fn clone(&self) -> SlashCommandCompleter
fn clone(&self) -> SlashCommandCompleter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for SlashCommandCompleter
impl Default for SlashCommandCompleter
Source§fn default() -> SlashCommandCompleter
fn default() -> SlashCommandCompleter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SlashCommandCompleter
impl RefUnwindSafe for SlashCommandCompleter
impl Send for SlashCommandCompleter
impl Sync for SlashCommandCompleter
impl Unpin for SlashCommandCompleter
impl UnwindSafe for SlashCommandCompleter
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