pub struct InteractionMetadata {
pub authorizing_integration_owners: ApplicationIntegrationMap<AnonymizableId<GuildMarker>, Id<UserMarker>>,
pub id: Id<InteractionMarker>,
pub interacted_message_id: Option<Id<MessageMarker>>,
pub kind: InteractionType,
pub original_response_message_id: Option<Id<MessageMarker>>,
pub triggering_interaction_metadata: Option<Box<InteractionMetadata>>,
}
Expand description
Structure containing metadata for interactions.
Fields§
IDs for installation context(s) related to an interaction.
id: Id<InteractionMarker>
ID of the interaction.
interacted_message_id: Option<Id<MessageMarker>>
ID of the message that contained interactive component, present only on messages created from component interactions
kind: InteractionType
Type of interaction.
original_response_message_id: Option<Id<MessageMarker>>
ID of the original response message, present only on follow-up messages.
triggering_interaction_metadata: Option<Box<InteractionMetadata>>
Metadata for the interaction that was used to open the modal, present only on modal submit interactions
Trait Implementations§
source§impl Clone for InteractionMetadata
impl Clone for InteractionMetadata
source§fn clone(&self) -> InteractionMetadata
fn clone(&self) -> InteractionMetadata
Returns a copy 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 InteractionMetadata
impl Debug for InteractionMetadata
source§impl<'de> Deserialize<'de> for InteractionMetadata
impl<'de> Deserialize<'de> for InteractionMetadata
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 InteractionMetadata
impl PartialEq for InteractionMetadata
source§impl Serialize for InteractionMetadata
impl Serialize for InteractionMetadata
impl StructuralPartialEq for InteractionMetadata
Auto Trait Implementations§
impl Freeze for InteractionMetadata
impl RefUnwindSafe for InteractionMetadata
impl Send for InteractionMetadata
impl Sync for InteractionMetadata
impl Unpin for InteractionMetadata
impl UnwindSafe for InteractionMetadata
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)