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§
Source§impl Debug for CommandArgumentType
impl Debug for CommandArgumentType
Source§impl<'de> Deserialize<'de> for CommandArgumentType
impl<'de> Deserialize<'de> for CommandArgumentType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CommandArgumentType
impl RefUnwindSafe for CommandArgumentType
impl Send for CommandArgumentType
impl Sync for CommandArgumentType
impl Unpin for CommandArgumentType
impl UnwindSafe for CommandArgumentType
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