Files
yatm/entity/settings.go
T
Samuel Cui 4fef653b71 Prepare YATM v1.0.0-alpha.2
Unify file queries and Scan execution, retain indexed Identical results,
improve Job and Preview workflows, and verify release packaging.
2026-10-05 19:08:49 +08:00

18 lines
690 B
Go

package entity
import (
"database/sql/driver"
"google.golang.org/protobuf/encoding/protojson"
)
func (x *PreviewSettings) Scan(src any) error { return Scan(x, src) }
func (x *PreviewSettings) Value() (driver.Value, error) { return Value(x) }
func (x *PreviewJobSettings) Scan(src any) error { return Scan(x, src) }
func (x *PreviewJobSettings) Value() (driver.Value, error) { return Value(x) }
// Persisted Settings use the protobuf JSON shape for nested generator oneofs.
func (x *PreviewSettings) MarshalJSON() ([]byte, error) { return protojson.Marshal(x) }
func (x *PreviewSettings) UnmarshalJSON(data []byte) error { return protojson.Unmarshal(data, x) }