pub struct InteractionResponseData {
    pub allowed_mentions: Option<AllowedMentions>,
    pub attachments: Option<Vec<Attachment>>,
    pub choices: Option<Vec<CommandOptionChoice>>,
    pub components: Option<Vec<Component>>,
    pub content: Option<String>,
    pub custom_id: Option<String>,
    pub embeds: Option<Vec<Embed>>,
    pub flags: Option<MessageFlags>,
    pub title: Option<String>,
    pub tts: Option<bool>,
    pub poll: Option<Poll>,
}Expand description
Data included in an interaction response.
Fields§
§allowed_mentions: Option<AllowedMentions>Allowed mentions of the response.
attachments: Option<Vec<Attachment>>List of attachments on the response.
choices: Option<Vec<CommandOptionChoice>>List of autocomplete alternatives.
Can only be used with
InteractionResponseType::ApplicationCommandAutocompleteResult.
components: Option<Vec<Component>>List of components on the response.
content: Option<String>Content of the response.
custom_id: Option<String>For InteractionResponseType::Modal, user defined identifier.
embeds: Option<Vec<Embed>>Embeds of the response.
flags: Option<MessageFlags>Interaction response data flags.
The supported flags are MessageFlags::SUPPRESS_EMBEDS and
MessageFlags::EPHEMERAL.
title: Option<String>For InteractionResponseType::Modal, title of the modal.
tts: Option<bool>Whether the response is TTS.
poll: Option<Poll>A poll of the response.
Trait Implementations§
Source§impl Clone for InteractionResponseData
 
impl Clone for InteractionResponseData
Source§fn clone(&self) -> InteractionResponseData
 
fn clone(&self) -> InteractionResponseData
Returns a duplicate 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 InteractionResponseData
 
impl Debug for InteractionResponseData
Source§impl Default for InteractionResponseData
 
impl Default for InteractionResponseData
Source§fn default() -> InteractionResponseData
 
fn default() -> InteractionResponseData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InteractionResponseData
 
impl<'de> Deserialize<'de> for InteractionResponseData
Source§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
Source§impl PartialEq for InteractionResponseData
 
impl PartialEq for InteractionResponseData
Source§impl Serialize for InteractionResponseData
 
impl Serialize for InteractionResponseData
impl StructuralPartialEq for InteractionResponseData
Auto Trait Implementations§
impl Freeze for InteractionResponseData
impl RefUnwindSafe for InteractionResponseData
impl Send for InteractionResponseData
impl Sync for InteractionResponseData
impl Unpin for InteractionResponseData
impl UnwindSafe for InteractionResponseData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more