pub struct DialoguerPrompt;Implementations§
Trait Implementations§
Source§impl Debug for DialoguerPrompt
impl Debug for DialoguerPrompt
Source§impl Default for DialoguerPrompt
impl Default for DialoguerPrompt
Source§fn default() -> DialoguerPrompt
fn default() -> DialoguerPrompt
Returns the “default value” for a type. Read more
Source§impl PromptSource for DialoguerPrompt
impl PromptSource for DialoguerPrompt
Source§async fn ask_bool(&mut self, field: &Field, default: bool) -> Result<bool>
async fn ask_bool(&mut self, field: &Field, default: bool) -> Result<bool>
Drives Y/n via Input::<String> rather than Confirm so ? can
trigger help and bad input shows an error – Confirm silently
re-prompts on anything but y/n, which reads as “nothing happened”.
Source§async fn ask_multiselect(
&mut self,
field: &Field,
default_indices: &[usize],
) -> Result<Vec<usize>>
async fn ask_multiselect( &mut self, field: &Field, default_indices: &[usize], ) -> Result<Vec<usize>>
Drives multi-select via a Select loop with checkbox-prefixed
items and an explicit “Done” row. Each Enter toggles the
highlighted item; the user picks Done when finished. This
replaces dialoguer’s MultiSelect, which uses Space-to-toggle /
Enter-to-confirm – a binding that confused testers who expected
Enter to toggle the selection.
async fn ask_string(&mut self, field: &Field, default: &str) -> Result<String>
async fn ask_select( &mut self, field: &Field, default_idx: usize, ) -> Result<usize>
Auto Trait Implementations§
impl Freeze for DialoguerPrompt
impl RefUnwindSafe for DialoguerPrompt
impl Send for DialoguerPrompt
impl Sync for DialoguerPrompt
impl Unpin for DialoguerPrompt
impl UnsafeUnpin for DialoguerPrompt
impl UnwindSafe for DialoguerPrompt
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