Enum inquire::MultiSelectPromptAction
source · pub enum MultiSelectPromptAction {
FilterInput(InputAction),
MoveUp,
MoveDown,
PageUp,
PageDown,
MoveToStart,
MoveToEnd,
ToggleCurrentOption,
SelectAll,
ClearSelections,
}
Expand description
Set of actions for a MultiSelectPrompt.
Variants§
FilterInput(InputAction)
Action on the value text input handler.
MoveUp
Moves the cursor to the option above.
MoveDown
Moves the cursor to the option below.
PageUp
Moves the cursor to the page above.
PageDown
Moves the cursor to the page below.
MoveToStart
Moves the cursor to the start of the list.
MoveToEnd
Moves the cursor to the end of the list.
ToggleCurrentOption
Toggles the selection of the current option.
SelectAll
Selects all options.
ClearSelections
Deselects all options.
Trait Implementations§
source§impl Clone for MultiSelectPromptAction
impl Clone for MultiSelectPromptAction
source§fn clone(&self) -> MultiSelectPromptAction
fn clone(&self) -> MultiSelectPromptAction
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 MultiSelectPromptAction
impl Debug for MultiSelectPromptAction
source§impl PartialEq for MultiSelectPromptAction
impl PartialEq for MultiSelectPromptAction
source§fn eq(&self, other: &MultiSelectPromptAction) -> bool
fn eq(&self, other: &MultiSelectPromptAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MultiSelectPromptAction
impl Eq for MultiSelectPromptAction
impl StructuralPartialEq for MultiSelectPromptAction
Auto Trait Implementations§
impl Freeze for MultiSelectPromptAction
impl RefUnwindSafe for MultiSelectPromptAction
impl Send for MultiSelectPromptAction
impl Sync for MultiSelectPromptAction
impl Unpin for MultiSelectPromptAction
impl UnwindSafe for MultiSelectPromptAction
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