egui_charts/ui/dialogs/alert_dialog/actions.rs
1//! Actions from the typed alert dialog.
2
3use crate::model::Alert;
4
5/// Dialog result; only a submitted alert reaches the host service.
6#[derive(Clone, Debug)]
7#[non_exhaustive]
8pub enum AlertDialogAction {
9 /// No change.
10 None,
11 /// Dismissed without saving.
12 Cancel,
13 /// Create or replace the alert, identified by its optional host id.
14 Create(Box<Alert>),
15}