#[non_exhaustive]pub enum MessageDialogButtons {
Ok,
OkCancel,
YesNo,
OkCustom(String),
OkCancelCustom(String, String),
}
Expand description
Set of button that will be displayed on the dialog
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ok
A single Ok
button with OS default dialog text
OkCancel
2 buttons Ok
and Cancel
with OS default dialog texts
YesNo
2 buttons Yes
and No
with OS default dialog texts
OkCustom(String)
A single Ok
button with custom text
OkCancelCustom(String, String)
2 buttons Ok
and Cancel
with custom texts
Trait Implementations§
Source§impl Clone for MessageDialogButtons
impl Clone for MessageDialogButtons
Source§fn clone(&self) -> MessageDialogButtons
fn clone(&self) -> MessageDialogButtons
Returns a copy 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 MessageDialogButtons
impl Debug for MessageDialogButtons
Source§impl Default for MessageDialogButtons
impl Default for MessageDialogButtons
Source§fn default() -> MessageDialogButtons
fn default() -> MessageDialogButtons
Returns the “default value” for a type. Read more
Source§impl From<MessageDialogButtons> for MessageButtons
impl From<MessageDialogButtons> for MessageButtons
Source§fn from(value: MessageDialogButtons) -> Self
fn from(value: MessageDialogButtons) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MessageDialogButtons
impl RefUnwindSafe for MessageDialogButtons
impl Send for MessageDialogButtons
impl Sync for MessageDialogButtons
impl Unpin for MessageDialogButtons
impl UnwindSafe for MessageDialogButtons
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