pub enum MessageBoxType {
Ok,
OkCancel,
YesNo,
YesNoDefNo,
YesNoCancel,
YesNoCancelDefNo,
RetryCancel,
TextInput,
FileSelection,
}Expand description
Message box types similar to WinAPI MessageBox
Variants§
Ok
Simple OK dialog
OkCancel
OK/Cancel dialog
YesNo
Yes/No dialog
YesNoDefNo
Yes/No dialog with No as default
YesNoCancel
Yes/No/Cancel dialog
YesNoCancelDefNo
Yes/No/Cancel dialog with No as default
RetryCancel
Retry/Cancel dialog
TextInput
Text input dialog with OK/Cancel
FileSelection
File selection dialog with OK/Cancel
Implementations§
Source§impl MessageBoxType
impl MessageBoxType
Sourcepub fn from_str(arg: &str) -> Option<MessageBoxType>
pub fn from_str(arg: &str) -> Option<MessageBoxType>
Parses the --type argument and maps it to a MessageBoxType.
Trait Implementations§
Source§impl Clone for MessageBoxType
impl Clone for MessageBoxType
Source§fn clone(&self) -> MessageBoxType
fn clone(&self) -> MessageBoxType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageBoxType
impl Debug for MessageBoxType
Source§impl PartialEq for MessageBoxType
impl PartialEq for MessageBoxType
impl Copy for MessageBoxType
impl Eq for MessageBoxType
impl StructuralPartialEq for MessageBoxType
Auto Trait Implementations§
impl Freeze for MessageBoxType
impl RefUnwindSafe for MessageBoxType
impl Send for MessageBoxType
impl Sync for MessageBoxType
impl Unpin for MessageBoxType
impl UnwindSafe for MessageBoxType
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