go-mstdn/ent/application.go

19 lines
773 B
Go
Raw Normal View History

2023-09-26 08:49:01 +00:00
package ent
import (
"github.com/reiver/go-opt"
"github.com/reiver/go-nul"
2023-09-26 08:49:01 +00:00
)
// Appication represents a Mastodon API "Appication".
//
// See:
// https://docs.joinmastodon.org/entities/Application/
type Application struct {
Name opt.Optional[string] `json:"name"`
2024-08-08 19:49:22 +00:00
WebSite nul.Nullable[string] `json:"website,omitempty"` // optional — field has JSON null value in JSON if not set
VapidKey opt.Optional[string] `json:"vapid_key,omitempty"` // optional — field not included in JSON if not set
ClientID opt.Optional[string] `json:"client_id,omitempty"` // optional — field not included in JSON if not set
ClientSecret opt.Optional[string] `json:"client_secret,omitempty"` // optional — field not included in JSON if not set
2023-09-26 08:49:01 +00:00
}