blob: 22837611fefc2dd0c08799f505f2fa4d0a42427b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
pub enum Kind {
Info,
Warning,
Error,
}
impl std::fmt::Display for Kind {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Kind::Info => f.write_str("info"),
Kind::Warning => f.write_str("warning"),
Kind::Error => f.write_str("error"),
}
}
}
pub struct Notification {
pub kind: Kind,
pub message: String,
}
|