pub struct InteractionCallbackData<'a> {
pub tts: bool,
pub content: Option<TitanString<'a>>,
pub embeds: Vec<Embed<'a>>,
pub allowed_mentions: Option<Value>,
pub flags: Option<u64>,
pub components: Vec<Component<'a>>,
pub choices: Option<Vec<InteractionDataOption<'a>>>,
pub attachments: Vec<Attachment<'a>>,
}Expand description
Callback Data.
Fields§
§tts: boolTTS.
content: Option<TitanString<'a>>Message content.
embeds: Vec<Embed<'a>>Embeds.
allowed_mentions: Option<Value>Allowed mentions.
flags: Option<u64>Message flags (e.g. EPHEMERAL).
components: Vec<Component<'a>>Components.
choices: Option<Vec<InteractionDataOption<'a>>>Autocomplete choices.
attachments: Vec<Attachment<'a>>Attachments.
Trait Implementations§
Source§impl<'a> Clone for InteractionCallbackData<'a>
impl<'a> Clone for InteractionCallbackData<'a>
Source§fn clone(&self) -> InteractionCallbackData<'a>
fn clone(&self) -> InteractionCallbackData<'a>
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<'a> Debug for InteractionCallbackData<'a>
impl<'a> Debug for InteractionCallbackData<'a>
Source§impl<'a> Default for InteractionCallbackData<'a>
impl<'a> Default for InteractionCallbackData<'a>
Source§fn default() -> InteractionCallbackData<'a>
fn default() -> InteractionCallbackData<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for InteractionCallbackData<'a>
impl<'de, 'a> Deserialize<'de> for InteractionCallbackData<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for InteractionCallbackData<'a>
impl<'a> RefUnwindSafe for InteractionCallbackData<'a>
impl<'a> Send for InteractionCallbackData<'a>
impl<'a> Sync for InteractionCallbackData<'a>
impl<'a> Unpin for InteractionCallbackData<'a>
impl<'a> UnwindSafe for InteractionCallbackData<'a>
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