2 aggregates::structs::{CommentAggregates, CommunityAggregates, PersonAggregates},
5 comment_reply::CommentReply,
8 person_mention::PersonMention,
13 use serde::{Deserialize, Serialize};
15 #[derive(Debug, Serialize, Deserialize, Clone)]
16 pub struct CommunityBlockView {
18 pub community: Community,
21 #[derive(Debug, Serialize, Deserialize, Clone)]
22 pub struct CommunityFollowerView {
23 pub community: Community,
27 #[derive(Debug, Serialize, Deserialize, Clone)]
28 pub struct CommunityModeratorView {
29 pub community: Community,
30 pub moderator: Person,
33 #[derive(Debug, Serialize, Deserialize, Clone)]
34 pub struct CommunityPersonBanView {
35 pub community: Community,
39 #[derive(Debug, Serialize, Deserialize, Clone)]
40 pub struct CommunityView {
41 pub community: Community,
42 pub subscribed: SubscribedType,
44 pub counts: CommunityAggregates,
47 #[derive(Debug, Serialize, Deserialize, Clone)]
48 pub struct PersonBlockView {
53 #[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Clone)]
54 pub struct PersonMentionView {
55 pub person_mention: PersonMention,
59 pub community: Community,
60 pub recipient: Person,
61 pub counts: CommentAggregates,
62 pub creator_banned_from_community: bool, // Left Join to CommunityPersonBan
63 pub subscribed: SubscribedType, // Left join to CommunityFollower
64 pub saved: bool, // Left join to CommentSaved
65 pub creator_blocked: bool, // Left join to PersonBlock
66 pub my_vote: Option<i16>, // Left join to CommentLike
69 #[derive(Debug, PartialEq, Eq, Serialize, Deserialize, Clone)]
70 pub struct CommentReplyView {
71 pub comment_reply: CommentReply,
75 pub community: Community,
76 pub recipient: Person,
77 pub counts: CommentAggregates,
78 pub creator_banned_from_community: bool, // Left Join to CommunityPersonBan
79 pub subscribed: SubscribedType, // Left join to CommunityFollower
80 pub saved: bool, // Left join to CommentSaved
81 pub creator_blocked: bool, // Left join to PersonBlock
82 pub my_vote: Option<i16>, // Left join to CommentLike
85 #[derive(Debug, Serialize, Deserialize, Clone)]
86 pub struct PersonView {
88 pub counts: PersonAggregates,