#[non_exhaustive]pub struct CommandMetadata {
pub id: InteractionId,
pub user: User,
pub authorizing_integration_owners: AuthorizingIntegrationOwners,
pub original_response_message_id: Option<MessageId>,
pub target_user: Option<Box<User>>,
pub target_message_id: Option<MessageId>,
}Expand description
The metadata of an application command interaction.
discord.js counterpart: APIApplicationCommandInteractionMetadata (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.
target_user: Option<Box<User>>The user a user command was run on.
target_message_id: Option<MessageId>The message a message command was run on.
Trait Implementations§
Source§impl Clone for CommandMetadata
impl Clone for CommandMetadata
Source§impl Debug for CommandMetadata
impl Debug for CommandMetadata
impl Eq for CommandMetadata
Source§impl PartialEq for CommandMetadata
impl PartialEq for CommandMetadata
Source§impl Serialize for CommandMetadata
impl Serialize for CommandMetadata
impl StructuralPartialEq for CommandMetadata
Auto Trait Implementations§
impl Forget for CommandMetadata
impl Freeze for CommandMetadata
impl Move for CommandMetadata
impl RefUnwindSafe for CommandMetadata
impl Send for CommandMetadata
impl Sync for CommandMetadata
impl Unpin for CommandMetadata
impl UnsafeUnpin for CommandMetadata
impl UnwindSafe for CommandMetadata
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