]> Untitled Git - lemmy.git/blob - crates/structs/src/websocket.rs
Merge pull request #1328 from LemmyNet/move_views_to_diesel
[lemmy.git] / crates / structs / src / websocket.rs
1 use serde::{Deserialize, Serialize};
2
3 #[derive(Deserialize, Debug)]
4 pub struct UserJoin {
5   pub auth: String,
6 }
7
8 #[derive(Serialize, Clone)]
9 pub struct UserJoinResponse {
10   pub joined: bool,
11 }
12
13 #[derive(Deserialize, Debug)]
14 pub struct CommunityJoin {
15   pub community_id: i32,
16 }
17
18 #[derive(Serialize, Clone)]
19 pub struct CommunityJoinResponse {
20   pub joined: bool,
21 }
22
23 #[derive(Deserialize, Debug)]
24 pub struct ModJoin {
25   pub community_id: i32,
26 }
27
28 #[derive(Serialize, Clone)]
29 pub struct ModJoinResponse {
30   pub joined: bool,
31 }
32
33 #[derive(Deserialize, Debug)]
34 pub struct PostJoin {
35   pub post_id: i32,
36 }
37
38 #[derive(Serialize, Clone)]
39 pub struct PostJoinResponse {
40   pub joined: bool,
41 }