#[non_exhaustive]pub struct SubmittedSelect {
pub id: Option<u32>,
pub custom_id: CompactString,
pub values: Vec<CompactString>,
}Expand description
A submitted string select or checkbox group.
discord.js counterpart: APIModalSubmitStringSelectComponent (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 component’s custom ID.
values: Vec<CompactString>The values of the selected options (empty if none).
Trait Implementations§
Source§impl Clone for SubmittedSelect
impl Clone for SubmittedSelect
Source§impl Debug for SubmittedSelect
impl Debug for SubmittedSelect
impl Eq for SubmittedSelect
Source§impl PartialEq for SubmittedSelect
impl PartialEq for SubmittedSelect
Source§impl Serialize for SubmittedSelect
impl Serialize for SubmittedSelect
impl StructuralPartialEq for SubmittedSelect
Auto Trait Implementations§
impl Forget for SubmittedSelect
impl Freeze for SubmittedSelect
impl Move for SubmittedSelect
impl RefUnwindSafe for SubmittedSelect
impl Send for SubmittedSelect
impl Sync for SubmittedSelect
impl Unpin for SubmittedSelect
impl UnsafeUnpin for SubmittedSelect
impl UnwindSafe for SubmittedSelect
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