Closed mogeko closed 1 year ago
Solve #17 by implementing Any for Bento.Encoder.
Bento.Encoder
If you try to encode a Struct. By default, we will convert the Struct to a Map, then encode it.
Map
The unavailable types (Float, Function, PID, Port and Reference) will raise an Bento.EncodeError when you try to encode them.
Float
Function
PID
Port
Reference
Bento.EncodeError
A specific Struct or the unavailable types can be implement by you need.
Solve #17 by implementing Any for
Bento.Encoder
.If you try to encode a Struct. By default, we will convert the Struct to a
Map
, then encode it.The unavailable types (
Float
,Function
,PID
,Port
andReference
) will raise anBento.EncodeError
when you try to encode them.A specific Struct or the unavailable types can be implement by you need.