2023-01-31 03:38:57 +00:00
|
|
|
// Source: lemmy/crates/db_views/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
|
|
|
|
2023-01-05 20:51:45 +00:00
|
|
|
package types
|
|
|
|
|
2023-01-31 03:38:57 +00:00
|
|
|
type CommentReportView struct {
|
|
|
|
CommentReport CommentReport `json:"comment_report" url:"comment_report,omitempty"`
|
|
|
|
Comment Comment `json:"comment" url:"comment,omitempty"`
|
|
|
|
Post Post `json:"post" url:"post,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
|
|
|
Creator PersonSafe `json:"creator" url:"creator,omitempty"`
|
|
|
|
CommentCreator PersonSafe `json:"comment_creator" url:"comment_creator,omitempty"`
|
|
|
|
Counts CommentAggregates `json:"counts" url:"counts,omitempty"`
|
|
|
|
CreatorBannedFromCommunity bool `json:"creator_banned_from_community" url:"creator_banned_from_community,omitempty"`
|
|
|
|
MyVote Optional[int16] `json:"my_vote" url:"my_vote,omitempty"`
|
|
|
|
Resolver Optional[PersonSafe] `json:"resolver" url:"resolver,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type CommentView struct {
|
|
|
|
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"`
|
|
|
|
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"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type LocalUserView struct {
|
|
|
|
LocalUser LocalUser `json:"local_user" url:"local_user,omitempty"`
|
|
|
|
Person Person `json:"person" url:"person,omitempty"`
|
|
|
|
Counts PersonAggregates `json:"counts" url:"counts,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type LocalUserSettingsView struct {
|
|
|
|
LocalUser LocalUserSettings `json:"local_user" url:"local_user,omitempty"`
|
|
|
|
Person PersonSafe `json:"person" url:"person,omitempty"`
|
|
|
|
Counts PersonAggregates `json:"counts" url:"counts,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type PostReportView struct {
|
|
|
|
PostReport PostReport `json:"post_report" url:"post_report,omitempty"`
|
|
|
|
Post Post `json:"post" url:"post,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
|
|
|
Creator PersonSafe `json:"creator" url:"creator,omitempty"`
|
|
|
|
PostCreator PersonSafe `json:"post_creator" url:"post_creator,omitempty"`
|
|
|
|
CreatorBannedFromCommunity bool `json:"creator_banned_from_community" url:"creator_banned_from_community,omitempty"`
|
|
|
|
MyVote Optional[int16] `json:"my_vote" url:"my_vote,omitempty"`
|
|
|
|
Counts PostAggregates `json:"counts" url:"counts,omitempty"`
|
|
|
|
Resolver Optional[PersonSafe] `json:"resolver" url:"resolver,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type PostView struct {
|
|
|
|
Post Post `json:"post" url:"post,omitempty"`
|
|
|
|
Creator PersonSafe `json:"creator" url:"creator,omitempty"`
|
|
|
|
Community CommunitySafe `json:"community" url:"community,omitempty"`
|
|
|
|
CreatorBannedFromCommunity bool `json:"creator_banned_from_community" url:"creator_banned_from_community,omitempty"`
|
|
|
|
Counts PostAggregates `json:"counts" url:"counts,omitempty"`
|
|
|
|
Subscribed SubscribedType `json:"subscribed" url:"subscribed,omitempty"`
|
|
|
|
Saved bool `json:"saved" url:"saved,omitempty"`
|
|
|
|
Read bool `json:"read" url:"read,omitempty"`
|
|
|
|
CreatorBlocked bool `json:"creator_blocked" url:"creator_blocked,omitempty"`
|
|
|
|
MyVote Optional[int16] `json:"my_vote" url:"my_vote,omitempty"`
|
|
|
|
UnreadComments int64 `json:"unread_comments" url:"unread_comments,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type PrivateMessageView struct {
|
|
|
|
PrivateMessage PrivateMessage `json:"private_message" url:"private_message,omitempty"`
|
|
|
|
Creator PersonSafe `json:"creator" url:"creator,omitempty"`
|
|
|
|
Recipient PersonSafe `json:"recipient" url:"recipient,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type PrivateMessageReportView struct {
|
|
|
|
PrivateMessageReport PrivateMessageReport `json:"private_message_report" url:"private_message_report,omitempty"`
|
|
|
|
PrivateMessage PrivateMessage `json:"private_message" url:"private_message,omitempty"`
|
|
|
|
PrivateMessageCreator PersonSafe `json:"private_message_creator" url:"private_message_creator,omitempty"`
|
|
|
|
Creator PersonSafe `json:"creator" url:"creator,omitempty"`
|
|
|
|
Resolver Optional[PersonSafe] `json:"resolver" url:"resolver,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type RegistrationApplicationView struct {
|
|
|
|
RegistrationApplication RegistrationApplication `json:"registration_application" url:"registration_application,omitempty"`
|
|
|
|
CreatorLocalUser LocalUserSettings `json:"creator_local_user" url:"creator_local_user,omitempty"`
|
|
|
|
Creator PersonSafe `json:"creator" url:"creator,omitempty"`
|
|
|
|
Admin Optional[PersonSafe] `json:"admin" url:"admin,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|
2023-01-31 03:38:57 +00:00
|
|
|
type SiteView struct {
|
|
|
|
Site Site `json:"site" url:"site,omitempty"`
|
|
|
|
LocalSite LocalSite `json:"local_site" url:"local_site,omitempty"`
|
|
|
|
LocalSiteRateLimit LocalSiteRateLimit `json:"local_site_rate_limit" url:"local_site_rate_limit,omitempty"`
|
|
|
|
Counts SiteAggregates `json:"counts" url:"counts,omitempty"`
|
2023-01-05 20:51:45 +00:00
|
|
|
}
|