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) } }