MCPcopy Create free account
hub / github.com/Yengas/rust-chat-server / SendMessageCommand

Class SendMessageCommand

comms/src/command.rs:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19/// User Command for sending a message.
20#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
21pub 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)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected