1 use lemmy_db_schema::source::{
3 community::CommunitySafe,
17 person::{PersonSafe, PersonSafeAlias1},
20 use serde::{Deserialize, Serialize};
22 #[derive(Debug, Serialize, Deserialize, Clone)]
23 pub struct ModAddCommunityView {
24 pub mod_add_community: ModAddCommunity,
25 pub moderator: PersonSafe,
26 pub community: CommunitySafe,
27 pub modded_person: PersonSafeAlias1,
30 #[derive(Debug, Serialize, Deserialize, Clone)]
31 pub struct ModAddView {
33 pub moderator: PersonSafe,
34 pub modded_person: PersonSafeAlias1,
37 #[derive(Debug, Serialize, Deserialize, Clone)]
38 pub struct ModBanFromCommunityView {
39 pub mod_ban_from_community: ModBanFromCommunity,
40 pub moderator: PersonSafe,
41 pub community: CommunitySafe,
42 pub banned_person: PersonSafeAlias1,
45 #[derive(Debug, Serialize, Deserialize, Clone)]
46 pub struct ModBanView {
48 pub moderator: PersonSafe,
49 pub banned_person: PersonSafeAlias1,
52 #[derive(Debug, Serialize, Deserialize, Clone)]
53 pub struct ModHideCommunityView {
54 pub mod_hide_community: ModHideCommunity,
55 pub admin: PersonSafe,
56 pub community: CommunitySafe,
59 #[derive(Debug, Serialize, Deserialize, Clone)]
60 pub struct ModLockPostView {
61 pub mod_lock_post: ModLockPost,
62 pub moderator: PersonSafe,
64 pub community: CommunitySafe,
67 #[derive(Debug, Serialize, Deserialize, Clone)]
68 pub struct ModRemoveCommentView {
69 pub mod_remove_comment: ModRemoveComment,
70 pub moderator: PersonSafe,
72 pub commenter: PersonSafeAlias1,
74 pub community: CommunitySafe,
77 #[derive(Debug, Serialize, Deserialize, Clone)]
78 pub struct ModRemoveCommunityView {
79 pub mod_remove_community: ModRemoveCommunity,
80 pub moderator: PersonSafe,
81 pub community: CommunitySafe,
84 #[derive(Debug, Serialize, Deserialize, Clone)]
85 pub struct ModRemovePostView {
86 pub mod_remove_post: ModRemovePost,
87 pub moderator: PersonSafe,
89 pub community: CommunitySafe,
92 #[derive(Debug, Serialize, Deserialize, Clone)]
93 pub struct ModStickyPostView {
94 pub mod_sticky_post: ModStickyPost,
95 pub moderator: PersonSafe,
97 pub community: CommunitySafe,
100 #[derive(Debug, Serialize, Deserialize, Clone)]
101 pub struct ModTransferCommunityView {
102 pub mod_transfer_community: ModTransferCommunity,
103 pub moderator: PersonSafe,
104 pub community: CommunitySafe,
105 pub modded_person: PersonSafeAlias1,