A Short Serde Deserialize example
A Short Serde Deserialize example
In my previous post, I described taking a simple enum and creating a custom type in diesel. This post will take that same enum and implement deserialize.
I often get tripped up by the mechanics of deserializing so this simple enum makes for a good example. Again, this is to benefit anyone looking for more examples of Serde's Deserialize as well as for myself, so I can remember next time I need to do this.
Read More