native-dialog 0.5.4

A library to display dialogs. Supports GNU/Linux, BSD Unix, macOS and Windows.
Documentation
use super::Dialog;
use crate::MessageType;
use raw_window_handle::RawWindowHandle;

pub struct MessageAlert<'a> {
    pub(crate) title: &'a str,
    pub(crate) text: &'a str,
    pub(crate) typ: MessageType,
    pub(crate) owner: Option<RawWindowHandle>,
}

impl Dialog for MessageAlert<'_> {
    type Output = ();
}

pub struct MessageConfirm<'a> {
    pub(crate) title: &'a str,
    pub(crate) text: &'a str,
    pub(crate) typ: MessageType,
    pub(crate) owner: Option<RawWindowHandle>,
}

impl Dialog for MessageConfirm<'_> {
    type Output = bool;
}