Struct twilight_command_parser::Command [−][src]
#[non_exhaustive]pub struct Command<'a> { pub arguments: Arguments<'a>, pub name: &'a str, pub prefix: &'a str, }
Expand description
Indicator that a command was used.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.arguments: Arguments<'a>
A lazy iterator of command arguments. Refer to its documentation on how to use it.
name: &'a str
The name of the command that was called.
prefix: &'a str
The prefix used to call the command.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Command<'a>
impl<'a> UnwindSafe for Command<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more