go-mstdn/ent/role.go

19 lines
535 B
Go
Raw Permalink Normal View History

2023-09-26 05:29:10 +00:00
package ent
2023-09-26 04:51:37 +00:00
import (
"github.com/reiver/go-opt"
"github.com/reiver/go-jsonint"
2023-09-26 04:51:37 +00:00
)
// Role represents a Mastodon API "Role".
//
// See:
// https://docs.joinmastodon.org/entities/Role/
type Role struct {
2024-08-08 19:46:06 +00:00
ID opt.Optional[jsonint.Int] `json:"id,omitempty"`
Name opt.Optional[string] `json:"name,omitempty"`
Color opt.Optional[string] `json:"color,omitempty"`
Permissions opt.Optional[jsonint.Int] `json:"permissions,omitempty"`
Highlighted opt.Optional[bool] `json:"highlighted,omitempty"`
2023-09-26 04:51:37 +00:00
}