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 for CommandOptionChoiceValue
impl PartialEq for CommandOptionChoiceValue
source§impl Serialize for CommandOptionChoiceValue
impl Serialize for CommandOptionChoiceValue
impl StructuralPartialEq for CommandOptionChoiceValue
Auto Trait Implementations§
impl Freeze for CommandOptionChoiceValue
impl RefUnwindSafe for CommandOptionChoiceValue
impl Send for CommandOptionChoiceValue
impl Sync for CommandOptionChoiceValue
impl Unpin for CommandOptionChoiceValue
impl UnwindSafe for CommandOptionChoiceValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)