add documentation
This commit is contained in:
parent
e5b81a3ff9
commit
d1a128e9df
@ -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<String>,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user