photoprism/internal/form/face.go
2021-09-18 20:41:30 +02:00

15 lines
283 B
Go

package form
import "github.com/ulule/deepcopier"
// Face represents a face edit form.
type Face struct {
FaceHidden bool `json:"Hidden"`
SubjUID string `json:"SubjUID"`
}
func NewFace(m interface{}) (f Face, err error) {
err = deepcopier.Copy(m).To(&f)
return f, err
}