go-mstdn/role.go

19 lines
495 B
Go
Raw Normal View History

2023-09-26 04:51:37 +00:00
package mstdn
import (
"sourcecode.social/reiver/go-opt"
"sourcecode.social/reiver/go-jsonint"
)
// Role represents a Mastodon API "Role".
//
// See:
// https://docs.joinmastodon.org/entities/Role/
type Role struct {
ID opt.Optional[jsonint.Int] `json:"id"`
Name opt.Optional[string] `json:"name"`
Color opt.Optional[string] `json:"color"`
Permissions opt.Optional[jsonint.Int] `json:"permissions"`
Highlighted opt.Optional[bool] `json:"color"`
}