Enum mg::DialogResult [] [src]

pub enum DialogResult {
    Answer(Option<String>),
    Shortcut(String),
}

Struct representing a dialog result. A dialog result is either what the user typed in the input (Answer) or the string associated with the shortcut.

Variants

A string typed by the user or None if the user closed the dialog (with Escape).

A shortcut pressd by the user.