pub trait FromOptions: Debug + Sendwhere
    Self: Sized,{
    // Required method
    fn from_options(
        interaction: &CommandInteraction
    ) -> Result<Self, ConvertError>;

    // Provided method
    fn get_argument_params() -> Result<Vec<ArgumentParam>, BuilderError> { ... }
}
Expand description

A trait that allows converting from an application command interaction

Required Methods§

source

fn from_options(interaction: &CommandInteraction) -> Result<Self, ConvertError>

Make arguments from a CommandInteraction

Provided Methods§

source

fn get_argument_params() -> Result<Vec<ArgumentParam>, BuilderError>

Get the argument paramss of this object

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromOptions for ()

Implementors§