Quantcast
Viewing latest article 5
Browse Latest Browse All 37

Comment by user2297996 on Is it possible to to handle invalid JSON values globally using Serde / Rust?

Thanks. This sounds much better than implementing From for each and every struct / enum. But I guess this still means I have to create a bunch of custom deserializers and then attach them to each field manually. So there is no "easy way" around this, right? Like somehow telling serde how to handle bool, string, number etc fields once and then just use that everywhere.

Viewing latest article 5
Browse Latest Browse All 37

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>