Struct twilight_model::http::interaction::InteractionResponseData
source · [−]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>,
}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.
Trait Implementations
sourceimpl Clone for InteractionResponseData
impl Clone for InteractionResponseData
sourcefn clone(&self) -> InteractionResponseData
fn clone(&self) -> InteractionResponseData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for InteractionResponseData
impl Debug for InteractionResponseData
sourceimpl Default for InteractionResponseData
impl Default for InteractionResponseData
sourcefn default() -> InteractionResponseData
fn default() -> InteractionResponseData
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InteractionResponseData
impl<'de> Deserialize<'de> for InteractionResponseData
sourcefn 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
sourceimpl PartialEq<InteractionResponseData> for InteractionResponseData
impl PartialEq<InteractionResponseData> for InteractionResponseData
sourcefn eq(&self, other: &InteractionResponseData) -> bool
fn eq(&self, other: &InteractionResponseData) -> bool
sourceimpl Serialize for InteractionResponseData
impl Serialize for InteractionResponseData
impl StructuralPartialEq for InteractionResponseData
Auto Trait Implementations
impl RefUnwindSafe for InteractionResponseData
impl Send for InteractionResponseData
impl Sync for InteractionResponseData
impl Unpin for InteractionResponseData
impl UnwindSafe for InteractionResponseData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more