Struct mg::DialogBuilder
[−]
[src]
pub struct DialogBuilder { /* fields omitted */ }
Builder to create a new dialog.
Methods
impl DialogBuilder
[src]
fn new() -> Self
[src]
Create a new dialog builder.
fn blocking(self, blocking: bool) -> Self
[src]
Set whether the dialog will block or not.
fn choices(self, choices: Vec<char>) -> Self
[src]
Set the choices available for the input.
fn completer(self, completer: &str) -> Self
[src]
Set the text completer for the input.
fn default_answer(self, answer: String) -> Self
[src]
Set the default answer for the input.
fn message(self, message: String) -> Self
[src]
Set the message/question to show to the user.
fn responder(self, responder: Box<Responder>) -> Self
[src]
Set a responder for an asynchronous dialog.
fn shortcut(self, shortcut: Key, value: &str) -> Self
[src]
Add a shortcut.