2023-09-26 05:29:10 +00:00
|
|
|
package ent
|
2023-09-26 04:51:37 +00:00
|
|
|
|
|
|
|
import (
|
2024-08-01 22:29:50 +00:00
|
|
|
"github.com/reiver/go-opt"
|
2024-08-01 23:04:28 +00:00
|
|
|
"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
|
|
|
}
|