pub struct Form { /* private fields */ }Expand description
A TTY-based form with multiple steps and inputs.
Examples
use tty_form::Form;
let mut form = Form::new();
let mut name_step = form.add_compound_step();
let mut prompt_text = name_step.add_static_text();
prompt_text.set_text("Enter name:");
name_step.add_text_input();
let mut description_step = form.add_description_step();
description_step.set_text("Enter information about this person:");
form.add_text_block_step();
let submission = form.execute();Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Form
impl !Send for Form
impl !Sync for Form
impl Unpin for Form
impl !UnwindSafe for Form
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more