Currently if you implement Codec for file that contains more fields that you need, tomland will use only those fields that you specified. However, sometimes it's desired to tell about redundant or unused fields. In JSON it is completely okay to ignore some fields, but in TOML static configuration having some fields in the config may lead to frustration in the future. It would be nice to have some way of telling which fields were not used.
Currently if you implement
Codecfor file that contains more fields that you need,tomlandwill use only those fields that you specified. However, sometimes it's desired to tell about redundant or unused fields. In JSON it is completely okay to ignore some fields, but in TOML static configuration having some fields in the config may lead to frustration in the future. It would be nice to have some way of telling which fields were not used.