Enum serenity::model::interactions::application_command::ApplicationCommandInteractionDataOptionValue [−][src]
#[non_exhaustive]
#[repr(u8)]
pub enum ApplicationCommandInteractionDataOptionValue {
String(String),
Integer(i64),
Boolean(bool),
User(User, Option<PartialMember>),
Channel(PartialChannel),
Role(Role),
Number(f64),
}
Expand description
The resolved value of an ApplicationCommandInteractionDataOption
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
String(String)
Tuple Fields
0: String
Integer(i64)
Tuple Fields
0: i64
Boolean(bool)
Tuple Fields
0: bool
User(User, Option<PartialMember>)
Channel(PartialChannel)
Tuple Fields
Role(Role)
Tuple Fields
0: Role
Number(f64)
Tuple Fields
0: f64
Trait Implementations
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
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more