Tweaking serialization

serde_derive supports a lot of attributes that help you to avoid manual implementations of the serializer or deserializer for the struct. In this section, we take a look at useful attributes in detail. We'll learn how to change the letter case of variants, how to remove a level of nesting, and how to use specific names for a tag and for a content of an enumeration.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.173.238