pub struct CommandDataOption {
pub name: String,
pub value: CommandOptionValue,
}Expand description
Data received when a user fills in a command option.
Fields§
§name: StringName of the option.
value: CommandOptionValueValue of the option.
Trait Implementations§
source§impl Clone for CommandDataOption
impl Clone for CommandDataOption
source§fn clone(&self) -> CommandDataOption
fn clone(&self) -> CommandDataOption
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 CommandDataOption
impl Debug for CommandDataOption
source§impl<'de> Deserialize<'de> for CommandDataOption
impl<'de> Deserialize<'de> for CommandDataOption
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<CommandDataOption> for CommandDataOption
impl PartialEq<CommandDataOption> for CommandDataOption
source§fn eq(&self, other: &CommandDataOption) -> bool
fn eq(&self, other: &CommandDataOption) -> bool
This method tests for
self and other values to be equal, and is used
by ==.