#[non_exhaustive]pub struct ModalSubmitMetadata {
pub id: InteractionId,
pub user: User,
pub authorizing_integration_owners: AuthorizingIntegrationOwners,
pub original_response_message_id: Option<MessageId>,
pub triggering_interaction_metadata: Box<InteractionMetadata>,
}Expand description
The metadata of a modal submit interaction.
discord.js counterpart: APIModalSubmitInteractionMetadata (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.
triggering_interaction_metadata: Box<InteractionMetadata>The interaction that opened the modal (an application command or a message component).
Trait Implementations§
Source§impl Clone for ModalSubmitMetadata
impl Clone for ModalSubmitMetadata
Source§impl Debug for ModalSubmitMetadata
impl Debug for ModalSubmitMetadata
impl Eq for ModalSubmitMetadata
Source§impl PartialEq for ModalSubmitMetadata
impl PartialEq for ModalSubmitMetadata
Source§impl Serialize for ModalSubmitMetadata
impl Serialize for ModalSubmitMetadata
impl StructuralPartialEq for ModalSubmitMetadata
Auto Trait Implementations§
impl Forget for ModalSubmitMetadata
impl Freeze for ModalSubmitMetadata
impl Move for ModalSubmitMetadata
impl RefUnwindSafe for ModalSubmitMetadata
impl Send for ModalSubmitMetadata
impl Sync for ModalSubmitMetadata
impl Unpin for ModalSubmitMetadata
impl UnsafeUnpin for ModalSubmitMetadata
impl UnwindSafe for ModalSubmitMetadata
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