Skip to main content

ChoiceValue

Trait ChoiceValue 

Source
pub trait ChoiceValue {
    // Required method
    fn into_value(self) -> ApplicationCommandOptionChoiceValue;
}
Expand description

The value half of a (name, value) suggestion: a string for string Options, an integer or number for numeric ones

Required Methods§

Source

fn into_value(self) -> ApplicationCommandOptionChoiceValue

The value, typed for its Option

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ChoiceValue for &str

Source§

impl ChoiceValue for String

Source§

impl ChoiceValue for f64

Source§

impl ChoiceValue for i8

Source§

impl ChoiceValue for i16

Source§

impl ChoiceValue for i32

Source§

impl ChoiceValue for i64

Source§

impl ChoiceValue for u8

Source§

impl ChoiceValue for u16

Source§

impl ChoiceValue for u32

Implementors§