As I am building the serializer, I think we need some sort of way to deal with formatting configuration for the individual fields like which fields need to be serialized as a top level table and which should be written as a inline table.
I am kinda unsure about how to go about this. We can use a StringHashMap where keys are the fully qualified paths and value will be a struct like FieldConfig which contains all the options that can be set for a field.
I am not sure about this one but we can also go with a anonymous tuple.
Would love to know your opinions on this
As I am building the serializer, I think we need some sort of way to deal with formatting configuration for the individual fields like which fields need to be serialized as a top level table and which should be written as a inline table.
I am kinda unsure about how to go about this. We can use a
StringHashMapwhere keys are the fully qualified paths and value will be a struct likeFieldConfigwhich contains all the options that can be set for a field.I am not sure about this one but we can also go with a anonymous tuple.
Would love to know your opinions on this