Struct dusk_ui::component::select_menu::SelectMenu
source · pub struct SelectMenu<D> {
pub id: String,
pub disabled: bool,
pub max_values: Option<u8>,
pub min_values: Option<u8>,
pub options: Vec<SelectMenuOption>,
pub placeholder: Option<String>,
pub on_change: Option<Callback<D>>,
/* private fields */
}Fields§
§id: String§disabled: bool§max_values: Option<u8>§min_values: Option<u8>§options: Vec<SelectMenuOption>§placeholder: Option<String>§on_change: Option<Callback<D>>Implementations§
source§impl<D> SelectMenu<D>
impl<D> SelectMenu<D>
pub fn new() -> Self
pub fn id<S: Into<String>>(self, id: S) -> Self
pub fn disabled(self, disabled: bool) -> Self
pub fn max_values(self, max_values: u8) -> Self
pub fn min_values(self, min_values: u8) -> Self
pub fn options(self, options: Vec<SelectOption>) -> Self
pub fn placeholder<S: Into<String>>(self, placeholder: S) -> Self
pub fn on_change<F: 'static + Fn(&Box<InteractionCreate>, &Arc<Context<D>>, D) -> Pin<Box<dyn Future<Output = D> + Send + Sync>> + Send + Sync>( self, f: F ) -> Self
Trait Implementations§
source§impl<D> Component<D> for SelectMenu<D>
impl<D> Component<D> for SelectMenu<D>
Auto Trait Implementations§
impl<D> !RefUnwindSafe for SelectMenu<D>
impl<D> Send for SelectMenu<D>where
D: Send,
impl<D> Sync for SelectMenu<D>where
D: Sync,
impl<D> Unpin for SelectMenu<D>where
D: Unpin,
impl<D> !UnwindSafe for SelectMenu<D>
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