aboutsummaryrefslogtreecommitdiff
path: root/azalea-brigadier/src/message.rs
blob: 75e07d4ef8a3b7f578fbe5942e5b4028e1a4265d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub struct Message(String);

impl Message {
    pub fn string(&self) -> String {
        self.0.to_string()
    }
}

impl From<String> for Message {
    fn from(s: String) -> Self {
        Self(s)
    }
}