#[non_exhaustive]pub struct SubmittedTextInput {
pub id: Option<u32>,
pub custom_id: CompactString,
pub value: CompactString,
}Expand description
A submitted text input.
discord.js counterpart: APIModalSubmitTextInputComponent (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: Option<u32>The component’s numeric ID.
custom_id: CompactStringThe input’s custom ID.
value: CompactStringThe text the user entered.
Trait Implementations§
Source§impl Clone for SubmittedTextInput
impl Clone for SubmittedTextInput
Source§impl Debug for SubmittedTextInput
impl Debug for SubmittedTextInput
impl Eq for SubmittedTextInput
Source§impl PartialEq for SubmittedTextInput
impl PartialEq for SubmittedTextInput
Source§impl Serialize for SubmittedTextInput
impl Serialize for SubmittedTextInput
impl StructuralPartialEq for SubmittedTextInput
Auto Trait Implementations§
impl Forget for SubmittedTextInput
impl Freeze for SubmittedTextInput
impl Move for SubmittedTextInput
impl RefUnwindSafe for SubmittedTextInput
impl Send for SubmittedTextInput
impl Sync for SubmittedTextInput
impl Unpin for SubmittedTextInput
impl UnsafeUnpin for SubmittedTextInput
impl UnwindSafe for SubmittedTextInput
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