#[non_exhaustive]pub enum SelectMenuType {
Text,
User,
Role,
Mentionable,
Channel,
}
Expand description
A SelectMenu
’s type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Text
Select menus with a text-based options
list.
Select menus of this kind
must set the options
field to specify the options users
can pick from.
User
User select menus.
Role
Role select menus.
Mentionable
Mentionable select menus.
Channel
Channel select menus.
Trait Implementations§
source§impl Clone for SelectMenuType
impl Clone for SelectMenuType
source§fn clone(&self) -> SelectMenuType
fn clone(&self) -> SelectMenuType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SelectMenuType
impl Debug for SelectMenuType
source§impl Hash for SelectMenuType
impl Hash for SelectMenuType
source§impl PartialEq for SelectMenuType
impl PartialEq for SelectMenuType
impl Copy for SelectMenuType
impl Eq for SelectMenuType
impl StructuralPartialEq for SelectMenuType
Auto Trait Implementations§
impl Freeze for SelectMenuType
impl RefUnwindSafe for SelectMenuType
impl Send for SelectMenuType
impl Sync for SelectMenuType
impl Unpin for SelectMenuType
impl UnwindSafe for SelectMenuType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)