evcc-io/api/marshal.go
2025-10-16 17:58:00 +02:00

11 lines
262 B
Go

package api
// BytesMarshaler marshals into bytes/string representation
type BytesMarshaler interface {
MarshalBytes() ([]byte, error)
}
// StructMarshaler marshals into a struct representation
type StructMarshaler interface {
MarshalStruct() (any, error)
}