Enum tauri::api::dialog::MessageDialogButtons
source · #[non_exhaustive]
pub enum MessageDialogButtons {
Ok,
OkCancel,
YesNo,
}
Available on
desktop
and crate feature dialog
only.Expand description
Options for action buttons on message dialogs.
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
Ok button.
OkCancel
Ok and Cancel buttons.
YesNo
Yes and No buttons.
Trait Implementations
sourceimpl Clone for MessageDialogButtons
impl Clone for MessageDialogButtons
sourcefn clone(&self) -> MessageDialogButtons
fn clone(&self) -> MessageDialogButtons
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MessageDialogButtons
impl Debug for MessageDialogButtons
sourceimpl From<MessageDialogButtons> for MessageButtons
impl From<MessageDialogButtons> for MessageButtons
sourcefn from(kind: MessageDialogButtons) -> Self
fn from(kind: MessageDialogButtons) -> Self
Converts to this type from the input type.
sourceimpl Hash for MessageDialogButtons
impl Hash for MessageDialogButtons
sourceimpl PartialEq<MessageDialogButtons> for MessageDialogButtons
impl PartialEq<MessageDialogButtons> for MessageDialogButtons
sourcefn eq(&self, other: &MessageDialogButtons) -> bool
fn eq(&self, other: &MessageDialogButtons) -> bool
impl Copy for MessageDialogButtons
impl Eq for MessageDialogButtons
impl StructuralEq for MessageDialogButtons
impl StructuralPartialEq for MessageDialogButtons
Auto Trait Implementations
impl RefUnwindSafe for MessageDialogButtons
impl Send for MessageDialogButtons
impl Sync for MessageDialogButtons
impl Unpin for MessageDialogButtons
impl UnwindSafe for MessageDialogButtons
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.