diff options
Diffstat (limited to 'server/protocol/src/registry.rs')
-rw-r--r-- | server/protocol/src/registry.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/server/protocol/src/registry.rs b/server/protocol/src/registry.rs new file mode 100644 index 00000000..f1e9a083 --- /dev/null +++ b/server/protocol/src/registry.rs @@ -0,0 +1,20 @@ +use serde::{Deserialize, Serialize}; + +#[derive(Debug, Serialize)] +pub struct Entry { + pub name: String, + pub address: Vec<String>, + pub players_online: usize, + pub last_game: i64, + pub version: (usize, usize), +} + +#[derive(Debug, Deserialize, Serialize)] +pub struct Submission { + pub secret: u128, + pub name: String, + pub players: usize, + pub last_game: i64, + pub version: (usize, usize), + pub uri: String, +} |