Struct dialog::backends::Dialog

source ·
pub struct Dialog { /* private fields */ }
Expand description

The dialog backend.

This backend uses the external dialog program (not to be confused with this crate also called dialog) to display text-based dialog boxes in the terminal.

Implementations

Creates a new Dialog instance without configuration.

Sets the backtitle for the dialog boxes.

The backtitle is displayed on the backdrop, at the top of the screen.

Sets the height of the dialog boxes.

The height is given in characters. The actual height of the dialog box might be higher than the given height if the content would not fit otherwise. The default height is zero.

Sets the width of the dialog boxes.

The width is given in characters. The actual width of the dialog box might be higher than the given width if the content would not fit otherwise. The default width is zero.

Trait Implementations

Converts this type into a shared reference of the (usually inferred) input type.
Shows the given input dialog and returns the input.
Shows the given message dialog.
Shows the given password dialog and returns the password.
Shows the given question dialog and returns the choice.
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.