Derive Macro SubCommand

Source
#[derive(SubCommand)]
{
    // Attributes available to this derive:
    #[command]
}
Expand description

Derives SubCommand.

Each field must implement BasicOption.

ยงExamples

use serenity_commands::SubCommand;

#[derive(SubCommand)]
struct Add {
    /// First number.
    a: f64,

    /// Second number.
    b: f64,
}