uom icon indicating copy to clipboard operation
uom copied to clipboard

Serde configurable to [de]serialize with unit abbreviations.

Open nicodemus26 opened this issue 5 years ago • 3 comments

It would be excellent to have serde serialize to strings with unit abbreviations so that the types are carried in serialization.

nicodemus26 avatar Nov 14 '18 18:11 nicodemus26

This should be pretty much trivial once #94 is implemented (#90 should be sufficient for deserialization for now), at least for the provided SI units.

Aehmlo avatar Nov 14 '18 21:11 Aehmlo

I'm also thinking making units first class in #107, which would make this easier. Currently working with base units isn't very friendly and de-serialization, as currently implemented, requires the resulting type to be provided rather than inferred during de-serialization.

iliekturtles avatar Nov 14 '18 23:11 iliekturtles