Trait AutocompleteSubCommandOrGroup

Source
pub trait AutocompleteSubCommandOrGroup: Sized {
    // Required method
    fn from_value(value: &CommandDataOptionValue) -> Result<Self>;
}
Expand description

A sub-command group which can be nested inside of an AutocompleteCommand and contains AutocompleteSubCommandOrGroups.

Required Methods§

Source

fn from_value(value: &CommandDataOptionValue) -> Result<Self>

Extract data from a CommandDataOptionValue.

§Errors

Returns an error if the implementation fails.

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§