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