This commit is contained in:
Adam 2024-07-25 00:19:28 -04:00
parent 0bf9a62636
commit 9701e4dcc0

View file

@ -1,6 +1,12 @@
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use std::net::SocketAddr; use std::net::SocketAddr;
/// User login
#[derive(Serialize, Deserialize, Debug)]
pub struct UserLogIn {
pub username: String,
}
/// Chat message /// Chat message
#[derive(Clone, Serialize, Deserialize, Debug)] #[derive(Clone, Serialize, Deserialize, Debug)]
pub struct ChatMessage { pub struct ChatMessage {