go-mstdn/ent/report.go

25 lines
988 B
Go
Raw Permalink Normal View History

2023-09-26 19:53:17 +00:00
package ent
import (
"github.com/reiver/go-jsonstr"
"github.com/reiver/go-nul"
"github.com/reiver/go-opt"
2023-09-26 19:53:17 +00:00
)
// Report represents a Mastodon API "Report".
//
// See:
// https://docs.joinmastodon.org/entities/Report/
type Report struct {
2024-08-08 19:50:09 +00:00
ID opt.Optional[string] `json:"id,omitempty"`
ActionTaken opt.Optional[bool] `json:"action_taken,omitempty"`
ActionTakenAt nul.Nullable[string] `json:"action_taken_at,omitempty"`
Category opt.Optional[string] `json:"category,omitempty"`
Comment opt.Optional[string] `json:"comment,omitempty"`
Forwarded opt.Optional[bool] `json:"forwarded,omitempty"`
CreatedAt opt.Optional[string] `json:"created_at,omitempty"`
StatusIDs nul.Nullable[jsonstr.Strings] `json:"status_ids,omitempty"`
RuleIDs nul.Nullable[jsonstr.Strings] `json:"rule_ids,omitempty"`
TargetAccount opt.Optional[Account] `json:"target_account,omitempty"`
2023-09-26 19:53:17 +00:00
}