Derive Macro serenity_commands::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,
}