pub struct InteractionCallback {
pub activity_instance_id: Option<String>,
pub id: Id<InteractionMarker>,
pub kind: InteractionType,
pub response_message_ephemeral: Option<bool>,
pub response_message_id: Option<Id<MessageMarker>>,
pub response_message_loading: Option<bool>,
}Expand description
Interaction object associated with the interaction response.
Fields§
§activity_instance_id: Option<String>Instance ID of the Activity if one was launched or joined
id: Id<InteractionMarker>ID of the interaction.
kind: InteractionTypeInteraction type.
response_message_ephemeral: Option<bool>Whether the response message is ephemeral
response_message_id: Option<Id<MessageMarker>>ID of the message that was created by the interaction
response_message_loading: Option<bool>Whether the message is in a loading state
Trait Implementations§
Source§impl Clone for InteractionCallback
impl Clone for InteractionCallback
Source§fn clone(&self) -> InteractionCallback
fn clone(&self) -> InteractionCallback
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 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
Source§impl PartialEq for InteractionCallback
impl PartialEq for InteractionCallback
impl StructuralPartialEq for InteractionCallback
Auto Trait Implementations§
impl Freeze for InteractionCallback
impl RefUnwindSafe for InteractionCallback
impl Send for InteractionCallback
impl Sync for InteractionCallback
impl Unpin 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