1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
    Appellation: core <module>
    Contrib: FL03 <jo3mccain@icloud.com>
    Description:
        ... Summary ...
*/

#[derive(Clone, Debug, Eq, PartialEq)]
pub struct State<T: ToString> {
    pub message: T,
}

impl<T: ToString> State<T> {
    pub fn new(message: T) -> Self {
        Self { message }
    }
}

impl<T: Default + ToString> Default for State<T> {
    fn default() -> Self {
        Self::new(Default::default())
    }
}