1 use lemmy_db_schema::source::{
3 community::CommunitySafe,
21 person::{PersonSafe, PersonSafeAlias1},
24 use serde::{Deserialize, Serialize};
26 #[derive(Debug, Serialize, Deserialize, Clone)]
27 pub struct ModAddCommunityView {
28 pub mod_add_community: ModAddCommunity,
29 pub moderator: PersonSafe,
30 pub community: CommunitySafe,
31 pub modded_person: PersonSafeAlias1,
34 #[derive(Debug, Serialize, Deserialize, Clone)]
35 pub struct ModAddView {
37 pub moderator: PersonSafe,
38 pub modded_person: PersonSafeAlias1,
41 #[derive(Debug, Serialize, Deserialize, Clone)]
42 pub struct ModBanFromCommunityView {
43 pub mod_ban_from_community: ModBanFromCommunity,
44 pub moderator: PersonSafe,
45 pub community: CommunitySafe,
46 pub banned_person: PersonSafeAlias1,
49 #[derive(Debug, Serialize, Deserialize, Clone)]
50 pub struct ModBanView {
52 pub moderator: PersonSafe,
53 pub banned_person: PersonSafeAlias1,
56 #[derive(Debug, Serialize, Deserialize, Clone)]
57 pub struct ModHideCommunityView {
58 pub mod_hide_community: ModHideCommunity,
59 pub admin: PersonSafe,
60 pub community: CommunitySafe,
63 #[derive(Debug, Serialize, Deserialize, Clone)]
64 pub struct ModLockPostView {
65 pub mod_lock_post: ModLockPost,
66 pub moderator: PersonSafe,
68 pub community: CommunitySafe,
71 #[derive(Debug, Serialize, Deserialize, Clone)]
72 pub struct ModRemoveCommentView {
73 pub mod_remove_comment: ModRemoveComment,
74 pub moderator: PersonSafe,
76 pub commenter: PersonSafeAlias1,
78 pub community: CommunitySafe,
81 #[derive(Debug, Serialize, Deserialize, Clone)]
82 pub struct ModRemoveCommunityView {
83 pub mod_remove_community: ModRemoveCommunity,
84 pub moderator: PersonSafe,
85 pub community: CommunitySafe,
88 #[derive(Debug, Serialize, Deserialize, Clone)]
89 pub struct ModRemovePostView {
90 pub mod_remove_post: ModRemovePost,
91 pub moderator: PersonSafe,
93 pub community: CommunitySafe,
96 #[derive(Debug, Serialize, Deserialize, Clone)]
97 pub struct ModStickyPostView {
98 pub mod_sticky_post: ModStickyPost,
99 pub moderator: PersonSafe,
101 pub community: CommunitySafe,
104 #[derive(Debug, Serialize, Deserialize, Clone)]
105 pub struct ModTransferCommunityView {
106 pub mod_transfer_community: ModTransferCommunity,
107 pub moderator: PersonSafe,
108 pub community: CommunitySafe,
109 pub modded_person: PersonSafeAlias1,
112 #[derive(Debug, Serialize, Deserialize, Clone)]
113 pub struct AdminPurgeCommentView {
114 pub admin_purge_comment: AdminPurgeComment,
115 pub admin: PersonSafe,
119 #[derive(Debug, Serialize, Deserialize, Clone)]
120 pub struct AdminPurgeCommunityView {
121 pub admin_purge_community: AdminPurgeCommunity,
122 pub admin: PersonSafe,
125 #[derive(Debug, Serialize, Deserialize, Clone)]
126 pub struct AdminPurgePersonView {
127 pub admin_purge_person: AdminPurgePerson,
128 pub admin: PersonSafe,
131 #[derive(Debug, Serialize, Deserialize, Clone)]
132 pub struct AdminPurgePostView {
133 pub admin_purge_post: AdminPurgePost,
134 pub admin: PersonSafe,
135 pub community: CommunitySafe,