blob: 01de5243a55687fc35c4c273cd303775dec3b540 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use std::fmt;
use serde::{Serialize, Deserialize};
#[derive(Debug, Default, PartialEq, Eq, Clone, Hash, Serialize, Deserialize)]
pub struct PlayerId(pub String);
impl fmt::Display for PlayerId {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0)
}
}
|