Enum zng_view_api::dialog::MsgDialogButtons
source · pub enum MsgDialogButtons {
Ok,
OkCancel,
YesNo,
}Expand description
Buttons of a message dialog.
Defines what kind of question the user is answering.
Variants§
Ok
Ok.
Just a confirmation of message received.
OkCancel
Ok or Cancel.
Approve selected choice or cancel.
YesNo
Yes or No.
Trait Implementations§
source§impl Clone for MsgDialogButtons
impl Clone for MsgDialogButtons
source§fn clone(&self) -> MsgDialogButtons
fn clone(&self) -> MsgDialogButtons
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 MsgDialogButtons
impl Debug for MsgDialogButtons
source§impl<'de> Deserialize<'de> for MsgDialogButtons
impl<'de> Deserialize<'de> for MsgDialogButtons
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for MsgDialogButtons
impl Hash for MsgDialogButtons
source§impl PartialEq for MsgDialogButtons
impl PartialEq for MsgDialogButtons
source§fn eq(&self, other: &MsgDialogButtons) -> bool
fn eq(&self, other: &MsgDialogButtons) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for MsgDialogButtons
impl Serialize for MsgDialogButtons
impl Copy for MsgDialogButtons
impl Eq for MsgDialogButtons
impl StructuralPartialEq for MsgDialogButtons
Auto Trait Implementations§
impl Freeze for MsgDialogButtons
impl RefUnwindSafe for MsgDialogButtons
impl Send for MsgDialogButtons
impl Sync for MsgDialogButtons
impl Unpin for MsgDialogButtons
impl UnwindSafe for MsgDialogButtons
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