pub enum StringArgument {
SingleWord,
QuotablePhrase,
GreedyPhrase,
}
Variants§
SingleWord
Match up until the next space.
QuotablePhrase
Same as single word unless the argument is wrapped in quotes, in which case it can contain spaces.
GreedyPhrase
Match the rest of the input.
Trait Implementations§
Source§impl ArgumentType for StringArgument
impl ArgumentType for StringArgument
fn parse( &self, reader: &mut StringReader, ) -> Result<Arc<dyn Any>, CommandSyntaxException>
fn examples(&self) -> Vec<String>
fn list_suggestions(&self, _builder: SuggestionsBuilder) -> Suggestions
Auto Trait Implementations§
impl Freeze for StringArgument
impl RefUnwindSafe for StringArgument
impl Send for StringArgument
impl Sync for StringArgument
impl Unpin for StringArgument
impl UnwindSafe for StringArgument
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