Struct twilight_model::application::callback::CallbackData [−][src]
pub struct CallbackData { pub allowed_mentions: Option<AllowedMentions>, pub content: Option<String>, pub embeds: Vec<Embed>, pub flags: Option<MessageFlags>, pub tts: Option<bool>, }
Expand description
Optional extra data sent when responding to an Interaction
of type
ApplicationCommand
.
This is used when intending to send a message in the response.
Fields
allowed_mentions: Option<AllowedMentions>
content: Option<String>
embeds: Vec<Embed>
flags: Option<MessageFlags>
tts: Option<bool>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]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 CallbackData
impl Send for CallbackData
impl Sync for CallbackData
impl Unpin for CallbackData
impl UnwindSafe for CallbackData
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more