Enum twilight_model::application::interaction::Interaction [−][src]
#[non_exhaustive] pub enum Interaction { Ping(Box<Ping>), ApplicationCommand(Box<ApplicationCommand>), }
Expand description
Payload received when a user executes an interaction.
Each variant corresponds to InteractionType
in the discord docs. Refer to
the discord docs for more information.
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.
Ping variant.
ApplicationCommand(Box<ApplicationCommand>)
Application command variant.
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnwindSafe for Interaction
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more