| 19 | /// User Command for sending a message. |
| 20 | #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
| 21 | pub struct SendMessageCommand { |
| 22 | // The room to send the message to. |
| 23 | #[serde(rename = "r")] |
| 24 | pub room: String, |
| 25 | // The content of the message. |
| 26 | #[serde(rename = "c")] |
| 27 | pub content: String, |
| 28 | } |
| 29 | |
| 30 | /// User Command for quitting the whole chat session. |
| 31 | #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] |
nothing calls this directly
no outgoing calls
no test coverage detected