pub enum CommandArgumentType {
String,
Integer,
Double,
Key,
Pattern,
UnixTime,
PureToken,
OneOf,
Block,
}
Expand description
An argument must have one of the following types:
Variants
String
a string argument.
Integer
an integer argument.
Double
a double-precision argument.
Key
a string that represents the name of a key.
Pattern
a string that represents a glob-like pattern.
UnixTime
an integer that represents a Unix timestamp.
PureToken
a token, i.e. a reserved keyword, which may or may not be provided. Not to be confused with free-text user input.
OneOf
the argument is a container for nested arguments. This type enables choice among several nested arguments
Block
the argument is a container for nested arguments. This type enables grouping arguments and applying a property (such as optional) to all
Trait Implementations
sourceimpl Debug for CommandArgumentType
impl Debug for CommandArgumentType
Auto Trait Implementations
impl RefUnwindSafe for CommandArgumentType
impl Send for CommandArgumentType
impl Sync for CommandArgumentType
impl Unpin for CommandArgumentType
impl UnwindSafe for CommandArgumentType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more