Trait modalkit::commands::ParsedCommand

source ·
pub trait ParsedCommand: Debug + FromStr<Err = String> {
    // Required method
    fn name(&self) -> String;
}
Expand description

Trait for result type of parsing commands.

Required Methods§

source

fn name(&self) -> String

Get the name of the command being executed.

Object Safety§

This trait is not object safe.

Implementors§