Struct trompt::Trompt [] [src]

pub struct Trompt<'a, R: 'a + BufRead, W: 'a + Write> { /* fields omitted */ }

Methods

impl<'a, R: 'a + BufRead, W: 'a + Write> Trompt<'a, R, W>
[src]

Start a new prompter with default values.

Set the message before the input.

Set to true if you want to hide the user input. For example for passwords.

Send the request to the user.

A helper. Same as .message(message).send().

A helper for retrieving confirmation from the user. Maps y and yes case insensitively to true and n and no to false.