#[non_exhaustive]pub enum ComponentType {
Show 20 variants
ActionRow,
Button,
TextSelectMenu,
TextInput,
UserSelectMenu,
RoleSelectMenu,
MentionableSelectMenu,
ChannelSelectMenu,
Section,
TextDisplay,
Thumbnail,
MediaGallery,
File,
Separator,
Container,
Label,
FileUpload,
CheckboxGroup,
Checkbox,
Unknown(u8),
}Expand description
Type of Component.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ActionRow
Component is an ActionRow.
Button
Component is an Button.
TextSelectMenu
Component is a SelectMenu with custom string options.
TextInput
Component is an TextInput.
UserSelectMenu
Component is a SelectMenu for users.
RoleSelectMenu
Component is a SelectMenu for roles.
MentionableSelectMenu
Component is a SelectMenu for mentionables.
ChannelSelectMenu
Component is a SelectMenu for channels.
Section
Component is a Container to display text alongside an accessory component.
TextDisplay
Component is a TextDisplay containing markdown text.
Thumbnail
Component is a Thumbnail that can be used as an accessory.
MediaGallery
Component is a MediaGallery that displays images and other media.
File
Component is a FileDisplay that displays an attached file.
Separator
Component is a Separator that adds vertical padding between other components.
Container
Component is a Container that visually groups a set of components.
Label
Component is a Label that provides a label and an optional description
for modal components.
FileUpload
Component is a FileUpload that allows uploading files in modals.
CheckboxGroup
Component is a CheckboxGroup that allows for a group of selectable checkboxes in modals
Checkbox
Component is a Checkbox that allows for a selectable checkbox in modals
Unknown(u8)
Variant value is unknown to the library.
Implementations§
Trait Implementations§
Source§impl Clone for ComponentType
impl Clone for ComponentType
Source§fn clone(&self) -> ComponentType
fn clone(&self) -> ComponentType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ComponentType
impl Debug for ComponentType
Source§impl<'de> Deserialize<'de> for ComponentType
impl<'de> Deserialize<'de> for ComponentType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for ComponentType
impl Display for ComponentType
Source§impl From<ComponentType> for u8
impl From<ComponentType> for u8
Source§fn from(value: ComponentType) -> Self
fn from(value: ComponentType) -> Self
Source§impl From<u8> for ComponentType
impl From<u8> for ComponentType
Source§impl Hash for ComponentType
impl Hash for ComponentType
Source§impl PartialEq for ComponentType
impl PartialEq for ComponentType
Source§fn eq(&self, other: &ComponentType) -> bool
fn eq(&self, other: &ComponentType) -> bool
self and other values to be equal, and is used by ==.