#[non_exhaustive]pub struct SubmittedLabel {
pub id: Option<u32>,
pub component: Box<SubmittedComponent>,
}Expand description
A submitted label and the input inside it.
discord.js counterpart: ModalSubmitLabelComponent (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.
component: Box<SubmittedComponent>The submitted input inside the label.
Trait Implementations§
Source§impl Clone for SubmittedLabel
impl Clone for SubmittedLabel
Source§impl Debug for SubmittedLabel
impl Debug for SubmittedLabel
impl Eq for SubmittedLabel
Source§impl PartialEq for SubmittedLabel
impl PartialEq for SubmittedLabel
Source§impl Serialize for SubmittedLabel
impl Serialize for SubmittedLabel
impl StructuralPartialEq for SubmittedLabel
Auto Trait Implementations§
impl Forget for SubmittedLabel
impl Freeze for SubmittedLabel
impl Move for SubmittedLabel
impl RefUnwindSafe for SubmittedLabel
impl Send for SubmittedLabel
impl Sync for SubmittedLabel
impl Unpin for SubmittedLabel
impl UnsafeUnpin for SubmittedLabel
impl UnwindSafe for SubmittedLabel
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