From d1a128e9dfbdf519d22af7dc8f8951dac882f6ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Mon, 30 Sep 2024 19:32:17 +0200 Subject: [PATCH] add documentation --- battlesnake/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/battlesnake/src/main.rs b/battlesnake/src/main.rs index a4b8187..a3a5c5e 100644 --- a/battlesnake/src/main.rs +++ b/battlesnake/src/main.rs @@ -30,7 +30,9 @@ pub enum Direction { #[derive(Debug, Deserialize, Serialize)] pub struct Move { + /// In which direction the snake should move r#move: Direction, + /// Say something to the other snakes #[serde(default, skip_serializing_if = "is_default")] shout: Option, }