1 2 3 4 5 6 7 8 9 10 11 12
use axum::Json; use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize, Debug)] pub struct MatchParams { // Just bot ids for now players: Vec<i32>, } pub async fn play_match(params: Json<MatchParams>) { println!("start match: {:#?}", params); }