#[non_exhaustive]pub struct ComponentMetadata {
pub id: InteractionId,
pub user: User,
pub authorizing_integration_owners: AuthorizingIntegrationOwners,
pub original_response_message_id: Option<MessageId>,
pub interacted_message_id: MessageId,
}Expand description
The metadata of a message component interaction.
discord.js counterpart: APIMessageComponentInteractionMetadata (discord-api-types).
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.
user: UserThe user who triggered the interaction.
The installations that authorized the interaction.
original_response_message_id: Option<MessageId>The original response message, on follow-up messages.
interacted_message_id: MessageIdThe message that contained the component.
Trait Implementations§
Source§impl Clone for ComponentMetadata
impl Clone for ComponentMetadata
Source§impl Debug for ComponentMetadata
impl Debug for ComponentMetadata
impl Eq for ComponentMetadata
Source§impl PartialEq for ComponentMetadata
impl PartialEq for ComponentMetadata
Source§impl Serialize for ComponentMetadata
impl Serialize for ComponentMetadata
impl StructuralPartialEq for ComponentMetadata
Auto Trait Implementations§
impl Freeze for ComponentMetadata
impl RefUnwindSafe for ComponentMetadata
impl Send for ComponentMetadata
impl Sync for ComponentMetadata
impl Unpin for ComponentMetadata
impl UnsafeUnpin for ComponentMetadata
impl UnwindSafe for ComponentMetadata
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