pub enum Select {
Strings(StringSelect),
Entities(EntitySelect),
}Expand description
Builds a select menu: string options or members, roles, mentionables or channels.
Variants§
Implementations§
Source§impl Select
impl Select
Sourcepub fn strings(custom_id: impl Into<String>, options: &[(&str, &str)]) -> Self
pub fn strings(custom_id: impl Into<String>, options: &[(&str, &str)]) -> Self
A string select with these (label, value) options (≤ 25).
Sourcepub fn entities(kind: EntityKind, custom_id: impl Into<String>) -> Self
pub fn entities(kind: EntityKind, custom_id: impl Into<String>) -> Self
A member, role, mentionable or channel select.
Sourcepub fn placeholder(self, text: impl Into<String>) -> Self
pub fn placeholder(self, text: impl Into<String>) -> Self
Placeholder text (≤ 150).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Select
impl RefUnwindSafe for Select
impl Send for Select
impl Sync for Select
impl Unpin for Select
impl UnsafeUnpin for Select
impl UnwindSafe for Select
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