Common/UserInterface/DTO/MessageSeverity.rs
1//! # MessageSeverity DTO
2//!
3//! Defines the Data Transfer Object enum for representing the severity level
4//! of a user-facing message.
5
6use serde::{Deserialize, Serialize};
7
8/// An enum representing the severity of a message to be shown to the user.
9/// This controls the visual style (e.g., icon, color) of the notification.
10#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, Hash)]
11pub enum MessageSeverity {
12 Info,
13
14 Warning,
15
16 Error,
17}