Struct dusk_ui::component::select_menu::SelectOption
source · pub struct SelectOption {
pub default: bool,
pub description: Option<String>,
pub emoji: Option<ReactionType>,
pub label: String,
pub value: String,
}Fields§
§default: bool§description: Option<String>§emoji: Option<ReactionType>§label: String§value: StringImplementations§
source§impl SelectOption
impl SelectOption
pub fn new() -> Self
pub fn is_default(self, default: bool) -> Self
pub fn description<S: Into<String>>(self, description: S) -> Self
pub fn emoji(self, emoji: ReactionType) -> Self
pub fn label<S: Into<String>>(self, label: S) -> Self
pub fn value<S: Into<String>>(self, value: S) -> Self
Trait Implementations§
source§impl Default for SelectOption
impl Default for SelectOption
source§impl Into<SelectMenuOption> for SelectOption
impl Into<SelectMenuOption> for SelectOption
source§fn into(self) -> SelectMenuOption
fn into(self) -> SelectMenuOption
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl RefUnwindSafe for SelectOption
impl Send for SelectOption
impl Sync for SelectOption
impl Unpin for SelectOption
impl UnwindSafe for SelectOption
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