go-lemmy/types/structs.1.gen.go

64 lines
3.7 KiB
Go
Raw Normal View History

2023-01-31 03:38:57 +00:00
// Source: lemmy/crates/db_views_actor/src/structs.rs
2023-04-21 02:27:38 +00:00
// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
2023-01-07 22:45:01 +00:00
package types
2023-01-31 03:38:57 +00:00
type CommunityBlockView struct {
Person PersonSafe `json:"person" url:"person,omitempty"`
Community CommunitySafe `json:"community" url:"community,omitempty"`
}
type CommunityFollowerView struct {
Community CommunitySafe `json:"community" url:"community,omitempty"`
Follower PersonSafe `json:"follower" url:"follower,omitempty"`
}
type CommunityModeratorView struct {
Community CommunitySafe `json:"community" url:"community,omitempty"`
Moderator PersonSafe `json:"moderator" url:"moderator,omitempty"`
}
type CommunityPersonBanView struct {
Community CommunitySafe `json:"community" url:"community,omitempty"`
Person PersonSafe `json:"person" url:"person,omitempty"`
}
type CommunityView struct {
Community CommunitySafe `json:"community" url:"community,omitempty"`
Subscribed SubscribedType `json:"subscribed" url:"subscribed,omitempty"`
Blocked bool `json:"blocked" url:"blocked,omitempty"`
Counts CommunityAggregates `json:"counts" url:"counts,omitempty"`
}
type PersonBlockView struct {
Person PersonSafe `json:"person" url:"person,omitempty"`
Target PersonSafe `json:"target" url:"target,omitempty"`
}
type PersonMentionView struct {
PersonMention PersonMention `json:"person_mention" url:"person_mention,omitempty"`
Comment Comment `json:"comment" url:"comment,omitempty"`
Creator PersonSafe `json:"creator" url:"creator,omitempty"`
Post Post `json:"post" url:"post,omitempty"`
Community CommunitySafe `json:"community" url:"community,omitempty"`
Recipient PersonSafe `json:"recipient" url:"recipient,omitempty"`
Counts CommentAggregates `json:"counts" url:"counts,omitempty"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community" url:"creator_banned_from_community,omitempty"`
Subscribed SubscribedType `json:"subscribed" url:"subscribed,omitempty"`
Saved bool `json:"saved" url:"saved,omitempty"`
CreatorBlocked bool `json:"creator_blocked" url:"creator_blocked,omitempty"`
MyVote Optional[int16] `json:"my_vote" url:"my_vote,omitempty"`
}
type CommentReplyView struct {
CommentReply CommentReply `json:"comment_reply" url:"comment_reply,omitempty"`
Comment Comment `json:"comment" url:"comment,omitempty"`
Creator PersonSafe `json:"creator" url:"creator,omitempty"`
Post Post `json:"post" url:"post,omitempty"`
Community CommunitySafe `json:"community" url:"community,omitempty"`
Recipient PersonSafe `json:"recipient" url:"recipient,omitempty"`
Counts CommentAggregates `json:"counts" url:"counts,omitempty"`
CreatorBannedFromCommunity bool `json:"creator_banned_from_community" url:"creator_banned_from_community,omitempty"`
Subscribed SubscribedType `json:"subscribed" url:"subscribed,omitempty"`
Saved bool `json:"saved" url:"saved,omitempty"`
CreatorBlocked bool `json:"creator_blocked" url:"creator_blocked,omitempty"`
MyVote Optional[int16] `json:"my_vote" url:"my_vote,omitempty"`
}
type PersonViewSafe struct {
Person PersonSafe `json:"person" url:"person,omitempty"`
Counts PersonAggregates `json:"counts" url:"counts,omitempty"`
}