go-lemmy/types/instance.gen.go

20 lines
891 B
Go
Raw Normal View History

2023-01-31 03:38:57 +00:00
// Source: lemmy/crates/db_schema/src/source/instance.rs
2023-04-21 02:27:38 +00:00
// Code generated by go.elara.ws/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
2023-01-31 03:38:57 +00:00
package types
type Instance struct {
2023-07-04 00:47:46 +00:00
ID int `json:"id" url:"id,omitempty"`
Domain string `json:"domain" url:"domain,omitempty"`
Published LemmyTime `json:"published" url:"published,omitempty"`
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
Software Optional[string] `json:"software" url:"software,omitempty"`
Version Optional[string] `json:"version" url:"version,omitempty"`
2023-01-31 03:38:57 +00:00
}
type InstanceForm struct {
2023-07-04 00:47:46 +00:00
Domain string `json:"domain" url:"domain,omitempty"`
Software Optional[string] `json:"software" url:"software,omitempty"`
Version Optional[string] `json:"version" url:"version,omitempty"`
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
2023-01-31 03:38:57 +00:00
}