pub struct Prompt<T> { /* private fields */ }Expand description
Interactive prompt to ask for user input.
Implementations§
Source§impl<T> Prompt<T>
impl<T> Prompt<T>
Sourcepub fn show_default(self, show: bool) -> Self
pub fn show_default(self, show: bool) -> Self
Show or hide the default value in the prompt.
Sourcepub fn show_choices(self, show: bool) -> Self
pub fn show_choices(self, show: bool) -> Self
Show or hide the choices in the prompt.
Auto Trait Implementations§
impl<T> Freeze for Prompt<T>where
T: Freeze,
impl<T> RefUnwindSafe for Prompt<T>where
T: RefUnwindSafe,
impl<T> Send for Prompt<T>where
T: Send,
impl<T> Sync for Prompt<T>where
T: Sync,
impl<T> Unpin for Prompt<T>where
T: Unpin,
impl<T> UnwindSafe for Prompt<T>where
T: UnwindSafe,
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