twilight_model/application/interaction/modal/
text_input.rs

1/// User filled in [`TextInput`].
2///
3/// See [Discord Docs/Text Input Interaction Response Structure].
4///
5/// [`TextInput`]: crate::channel::message::component::TextInput
6/// [Discord Docs/Text Input Interaction Response Structure]: https://discord.com/developers/docs/components/reference#text-input-text-input-interaction-response-structure
7#[derive(Clone, Debug, Eq, PartialEq)]
8pub struct ModalInteractionTextInput {
9    /// User defined identifier for the component.
10    ///
11    /// See [Discord Docs/Custom ID].
12    ///
13    /// [Discord Docs/Custom ID]: https://discord.com/developers/docs/components/reference#anatomy-of-a-component-custom-id
14    pub custom_id: String,
15    /// Unique identifier for the component.
16    pub id: i32,
17    /// Value submitted by the user.
18    pub value: String,
19}