pub trait SelectValue: Sized {
const MANY: bool = false;
// Required method
fn extract(data: &MessageComponentData) -> Result<Self, String>;
}Expand description
A typed select handler parameter (on:select:name=|ctx, picked: Vec<Color>| ..): the
selected values as String, Snowflake, resolved User, Role or PartialChannel, or a
#[derive(Choice)] enum; one (required), Option or Vec.
Provided Associated Constants§
Required Methods§
Sourcefn extract(data: &MessageComponentData) -> Result<Self, String>
fn extract(data: &MessageComponentData) -> Result<Self, String>
Reads the selected values; an error message when they do not fit the type
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".