media-io / yaserde

Yet Another Serializer/Deserializer
MIT License
175 stars 57 forks source link

Add "skip_serializing" attribute #133

Closed amy-keibler closed 2 years ago

amy-keibler commented 2 years ago

If it is present on a field, that field should not be included in the output If both skip_serializing and skip_serializing_if are present,skip_serializing should take precedent.

This is my first time working with macros in Rust, so code review feedback is appreciated.

Implements #131 (from writing tests, I learned that skip_deserializing is the default behavior, so it and skip would not be useful additions)

This relies on #132 to compile and run tests.