diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-20 21:45:18 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-20 22:57:39 +0200 |
commit | 9ddb4d7786509bf5995bd5e254c611a05ea50eba (patch) | |
tree | de606bbb04f56e201eebdbf1a075595149441998 /server/registry/src/register.rs | |
parent | f2836d359942a6b42b1db9d1fd7624499798d925 (diff) | |
download | hurrycurry-9ddb4d7786509bf5995bd5e254c611a05ea50eba.tar hurrycurry-9ddb4d7786509bf5995bd5e254c611a05ea50eba.tar.bz2 hurrycurry-9ddb4d7786509bf5995bd5e254c611a05ea50eba.tar.zst |
reg: move structs to protocol crate
Diffstat (limited to 'server/registry/src/register.rs')
-rw-r--r-- | server/registry/src/register.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/server/registry/src/register.rs b/server/registry/src/register.rs index 173361ef..fb1c668a 100644 --- a/server/registry/src/register.rs +++ b/server/registry/src/register.rs @@ -1,21 +1,10 @@ use crate::Registry; +use hurrycurry_protocol::registry::Submission; use log::{debug, info}; use rocket::{http::hyper::Uri, post, serde::json::Json, State}; -use serde::Deserialize; use std::{net::IpAddr, str::FromStr, sync::Arc, time::Instant}; use tokio::{net::lookup_host, sync::RwLock}; -#[derive(Debug, Deserialize)] -pub(super) struct Submission { - secret: u128, - name: String, - players: usize, - last_game: i64, - version: (usize, usize), - - uri: String, -} - #[post("/v1/register", data = "<submission>")] pub(super) async fn r_register<'a>( client_addr: IpAddr, |