mirror of
https://github.com/szymon-jozef/checkers.git
synced 2026-10-27 19:20:44 +01:00
15 lines
271 B
Rust
15 lines
271 B
Rust
use std::fmt::Display;
|
|
|
|
use uuid::Uuid;
|
|
|
|
pub struct Player {
|
|
pub name: String,
|
|
pub id: Uuid,
|
|
}
|
|
|
|
impl Display for Player {
|
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
|
write!(f, "(name: {}, id, {})", self.name, self.id)
|
|
}
|
|
}
|