Struct twilight_model::application::callback::CallbackData [−][src]
pub struct CallbackData {
pub allowed_mentions: Option<AllowedMentions>,
pub components: Option<Vec<Component>>,
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.
This struct has an associated builder in the twilight-util
crate.
Fields
allowed_mentions: Option<AllowedMentions>
components: Option<Vec<Component>>
List of components to include in the callback response.
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>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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
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