#[non_exhaustive]pub struct InteractionCallback {
pub id: InteractionId,
pub kind: InteractionType,
pub activity_instance_id: Option<CompactString>,
pub response_message_id: Option<MessageId>,
pub response_message_loading: Option<bool>,
pub response_message_ephemeral: Option<bool>,
}Expand description
The interaction a callback response belongs to.
discord.js counterpart: InteractionCallback.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: InteractionIdThe interaction’s ID.
kind: InteractionTypeThe interaction’s type.
activity_instance_id: Option<CompactString>The Activity instance that was launched or joined.
response_message_id: Option<MessageId>The message the response created.
response_message_loading: Option<bool>Whether the message is in a loading state (deferred responses).
response_message_ephemeral: Option<bool>Whether the message is ephemeral.
Trait Implementations§
Source§impl Clone for InteractionCallback
impl Clone for InteractionCallback
Source§impl Debug for InteractionCallback
impl Debug for InteractionCallback
Source§impl<'de> Deserialize<'de> for InteractionCallback
impl<'de> Deserialize<'de> for InteractionCallback
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
impl Eq for InteractionCallback
Source§impl PartialEq for InteractionCallback
impl PartialEq for InteractionCallback
Source§impl Serialize for InteractionCallback
impl Serialize for InteractionCallback
impl StructuralPartialEq for InteractionCallback
Auto Trait Implementations§
impl Forget for InteractionCallback
impl Freeze for InteractionCallback
impl Move for InteractionCallback
impl RefUnwindSafe for InteractionCallback
impl Send for InteractionCallback
impl Sync for InteractionCallback
impl Unpin for InteractionCallback
impl UnsafeUnpin for InteractionCallback
impl UnwindSafe for InteractionCallback
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