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 AutocompleteSubCommandOrGroup
s.
Required Methods§
Sourcefn from_value(value: &CommandDataOptionValue) -> Result<Self>
fn from_value(value: &CommandDataOptionValue) -> Result<Self>
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.