From 761b5ec25ec53cc4fe74454facd76be40f726e5f Mon Sep 17 00:00:00 2001 From: Franklin Date: Sun, 29 Jan 2023 15:29:10 -0400 Subject: [PATCH] Added dto --- src/dto/chat.rs | 6 ++++++ src/dto/mod.rs | 1 + 2 files changed, 7 insertions(+) create mode 100644 src/dto/chat.rs create mode 100644 src/dto/mod.rs diff --git a/src/dto/chat.rs b/src/dto/chat.rs new file mode 100644 index 0000000..b99987d --- /dev/null +++ b/src/dto/chat.rs @@ -0,0 +1,6 @@ +use serde::{Serialize, Deserialize}; + +#[derive(Serialize, Deserialize, Debug, Default, PartialEq, Eq, PartialOrd, Ord)] +pub struct ChatRoomParticipants { + pub participants: u32, +} \ No newline at end of file diff --git a/src/dto/mod.rs b/src/dto/mod.rs new file mode 100644 index 0000000..78ba7fb --- /dev/null +++ b/src/dto/mod.rs @@ -0,0 +1 @@ +pub mod chat; \ No newline at end of file