feat: ✨ websocket split
This commit is contained in:
parent
16481ed7bd
commit
4a695dce40
4 changed files with 44 additions and 19 deletions
|
@ -3,17 +3,6 @@ use std::{fmt::Display, str::FromStr};
|
|||
use chrono::{DateTime, Utc};
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct UserAndSignal {
|
||||
pub user: User,
|
||||
pub signal: Signal,
|
||||
}
|
||||
impl UserAndSignal {
|
||||
pub async fn new(user: User, signal: Signal) -> Self {
|
||||
UserAndSignal { user, signal }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct User {
|
||||
pub username: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue