summaryrefslogtreecommitdiff
path: root/src/roomid.rs
blob: 1f356fad6a0a2d8a53464e7150d1d2b3cc30cc13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#[derive(Debug, PartialEq, Eq, Clone, Hash)]
pub struct RoomId {
	pub name: String
}

impl RoomId {
	pub fn from_str(name: &str) -> Self {
		Self {name: name.to_string()}
	}
	pub fn to_string(&self) -> String {
		self.name.clone()
	}
}