twilight_model/application/interaction/modal/label.rs
1use crate::application::interaction::modal::ModalInteractionComponent;
2
3/// User filled in [`Label`].
4///
5/// See [Discord Docs/Label Interaction Response Structure].
6///
7/// [`Label`]: crate::channel::message::component::Label
8/// [Discord Docs/Label Interaction Response Structure]: https://discord.com/developers/docs/components/reference#label-label-interaction-response-structure
9#[derive(Clone, Debug, Eq, PartialEq)]
10pub struct ModalInteractionLabel {
11 /// Unique identifier for the component.
12 pub id: i32,
13 /// Child component within the label.
14 pub component: Box<ModalInteractionComponent>,
15}