serialize_with_tag was renamed to serde_with_tag, because it now also supports deserializing of the struct.
Context of Change
This removes the need of implementing custom deserialization of each struct that used serialize_with_tag so far. serde_with_tag now implements Serialize and Deserialize for the struct inside the macro.
Type of Change
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] Refactor (non-breaking change that only restructures code)
[ ] Tests (You added tests for code that already exists, or your new feature included in this PR)
[ ] Documentation Updates
[ ] Release
Test plan
added tests for deserialization including tagged containers (using serde_with_tag macro)
High Level Overview of Change
serialize_with_tag
was renamed toserde_with_tag
, because it now also supports deserializing of the struct.Context of Change
This removes the need of implementing custom deserialization of each struct that used
serialize_with_tag
so far.serde_with_tag
now implementsSerialize
andDeserialize
for the struct inside the macro.Type of Change
Test plan
serde_with_tag
macro)