Enum slashy::commands::CommandArguments [−][src]
pub enum CommandArguments { SubCommand { name: &'static str, description: &'static str, required: bool, options: Option<Vec<CommandArguments>>, func: Option<CommandFunction>, }, SubCommandGroup { name: &'static str, description: &'static str, required: bool, options: Option<Vec<CommandArguments>>, func: Option<CommandFunction>, }, String { name: &'static str, description: &'static str, required: bool, choices: Option<Vec<ArgumentChoice<String>>>, }, Integer { name: &'static str, description: &'static str, required: bool, choices: Option<Vec<ArgumentChoice<i32>>>, }, Boolean { name: &'static str, description: &'static str, required: bool, }, User { name: &'static str, description: &'static str, required: bool, }, Channel { name: &'static str, description: &'static str, required: bool, }, Role { name: &'static str, description: &'static str, required: bool, }, }
Expand description
The argument metadata we store with the command
These are used to parse text / interaction responses into Arguments
Variants
Show fields
Fields of SubCommand
name: &'static str
description: &'static str
required: bool
options: Option<Vec<CommandArguments>>
func: Option<CommandFunction>
Show fields
Fields of SubCommandGroup
name: &'static str
description: &'static str
required: bool
options: Option<Vec<CommandArguments>>
func: Option<CommandFunction>
Show fields
Show fields
Trait Implementations
impl Serialize for CommandArguments
[src]
impl Serialize for CommandArguments
[src]Auto Trait Implementations
impl RefUnwindSafe for CommandArguments
impl Send for CommandArguments
impl Sync for CommandArguments
impl Unpin for CommandArguments
impl UnwindSafe for CommandArguments
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,