login
This commit is contained in:
parent
0bf9a62636
commit
9701e4dcc0
1 changed files with 6 additions and 0 deletions
|
@ -1,6 +1,12 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
use std::net::SocketAddr;
|
||||
|
||||
/// User login
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct UserLogIn {
|
||||
pub username: String,
|
||||
}
|
||||
|
||||
/// Chat message
|
||||
#[derive(Clone, Serialize, Deserialize, Debug)]
|
||||
pub struct ChatMessage {
|
||||
|
|
Loading…
Add table
Reference in a new issue