feat: websocket split

This commit is contained in:
Ahmet Kaan Gümüş 2025-04-29 22:58:24 +03:00
parent 16481ed7bd
commit 4a695dce40
4 changed files with 44 additions and 19 deletions

View file

@ -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,