EnumMetaData

Trait EnumMetaData 

Source
pub trait EnumMetaData {
    // Required method
    fn get_metadata() -> HashMap<String, MetaData>;
}
Expand description

Tre EnumMetaData trait is used to get associated meta-data for the enum variants. The meta-data is specified using the following attributes:

#[completion(hidden)]
#[special_command]
#[help(Command help)]

Required Methods§

Source

fn get_metadata() -> HashMap<String, MetaData>

Get the metadata associated with the enum.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§