Enum mg::DialogResult
source · pub enum DialogResult {
Answer(Option<String>),
Shortcut(String),
}
Expand description
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§
Answer(Option<String>)
A string typed by the user or None if the user closed the dialog (with Escape).
Shortcut(String)
A shortcut pressd by the user.
Auto Trait Implementations§
impl RefUnwindSafe for DialogResult
impl Send for DialogResult
impl Sync for DialogResult
impl Unpin for DialogResult
impl UnwindSafe for DialogResult
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more