#[non_exhaustive]pub struct UnknownMetadata {
pub kind: InteractionType,
pub id: InteractionId,
pub user: User,
pub authorizing_integration_owners: AuthorizingIntegrationOwners,
pub original_response_message_id: Option<MessageId>,
}Expand description
The metadata of an interaction type this version of the library does not know about: the fields every interaction metadata has.
discord.js counterpart: none (an interaction type unknown to this version, kept as received).
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.kind: InteractionTypeThe interaction type.
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.
Trait Implementations§
Source§impl Clone for UnknownMetadata
impl Clone for UnknownMetadata
Source§impl Debug for UnknownMetadata
impl Debug for UnknownMetadata
impl Eq for UnknownMetadata
Source§impl PartialEq for UnknownMetadata
impl PartialEq for UnknownMetadata
Source§impl Serialize for UnknownMetadata
impl Serialize for UnknownMetadata
impl StructuralPartialEq for UnknownMetadata
Auto Trait Implementations§
impl Freeze for UnknownMetadata
impl RefUnwindSafe for UnknownMetadata
impl Send for UnknownMetadata
impl Sync for UnknownMetadata
impl Unpin for UnknownMetadata
impl UnsafeUnpin for UnknownMetadata
impl UnwindSafe for UnknownMetadata
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