add documentation

This commit is contained in:
Max Känner 2024-09-30 19:32:17 +02:00
parent e5b81a3ff9
commit d1a128e9df

View File

@ -30,7 +30,9 @@ pub enum Direction {
#[derive(Debug, Deserialize, Serialize)] #[derive(Debug, Deserialize, Serialize)]
pub struct Move { pub struct Move {
/// In which direction the snake should move
r#move: Direction, r#move: Direction,
/// Say something to the other snakes
#[serde(default, skip_serializing_if = "is_default")] #[serde(default, skip_serializing_if = "is_default")]
shout: Option<String>, shout: Option<String>,
} }