Struct ui::Select
zaun_client::ui::Select · Struct
pub struct Select(…)A select menu.
Methods
Section titled “Methods”strings
Section titled “strings”pub fn strings<impl Into<String>>(custom_id: impl Into<String>, options: &[(&str, &str)]) -> SelfChoices of (label, value).
entities
Section titled “entities”pub fn entities<impl Into<String>>(kind: EntityKind, custom_id: impl Into<String>) -> SelfMembers, roles or channels.
placeholder
Section titled “placeholder”pub fn placeholder<impl Into<String>>(self, text: impl Into<String>) -> SelfThe text shown before a choice.
pub fn range(self, min: u32, max: u32) -> SelfHow many may be chosen.
pub fn build(self) -> ComponentThe component.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Eq, PartialEq, StructuralPartialEq