go-lemmy/types/activity.gen.go

21 lines
933 B
Go
Raw Normal View History

2023-01-07 22:45:01 +00:00
// Code generated by go.arsenm.dev/go-lemmy/cmd/gen (struct generator). DO NOT EDIT.
package types
type Activity struct {
ID int32 `json:"id" url:"id,omitempty"`
Data any `json:"data" url:"data,omitempty"`
Local bool `json:"local" url:"local,omitempty"`
Published LemmyTime `json:"published" url:"published,omitempty"`
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
ApID string `json:"ap_id" url:"ap_id,omitempty"`
Sensitive Optional[bool] `json:"sensitive" url:"sensitive,omitempty"`
}
type ActivityForm struct {
Data any `json:"data" url:"data,omitempty"`
Local Optional[bool] `json:"local" url:"local,omitempty"`
Updated LemmyTime `json:"updated" url:"updated,omitempty"`
ApID string `json:"ap_id" url:"ap_id,omitempty"`
Sensitive bool `json:"sensitive" url:"sensitive,omitempty"`
}