pub enum CommandOptionChoiceValue {
String(String),
Integer(i64),
Number(f64),
}Expand description
Value of a CommandOptionChoice.
Note that the right variant must be selected based on the
CommandOption’s CommandOptionType.
Variants§
String(String)
String choice. Must be 100 characters or less.
Integer(i64)
Integer choice.
Number(f64)
Number choice.
Trait Implementations§
source§impl Clone for CommandOptionChoiceValue
impl Clone for CommandOptionChoiceValue
source§fn clone(&self) -> CommandOptionChoiceValue
fn clone(&self) -> CommandOptionChoiceValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CommandOptionChoiceValue
impl Debug for CommandOptionChoiceValue
source§impl<'de> Deserialize<'de> for CommandOptionChoiceValue
impl<'de> Deserialize<'de> for CommandOptionChoiceValue
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<CommandOptionChoiceValue> for CommandOptionChoiceValue
impl PartialEq<CommandOptionChoiceValue> for CommandOptionChoiceValue
source§fn eq(&self, other: &CommandOptionChoiceValue) -> bool
fn eq(&self, other: &CommandOptionChoiceValue) -> bool
This method tests for
self and other values to be equal, and is used
by ==.