Skip to content

feat: adds as_map attribute to Encode derive macro

Егор Ивков requested to merge custom-msgpack-ser-de into master

Summary

Adds as_map attribute to Encode derive macro instead of struct_as_map param in the encode function. When Encode is adopted instead of rmp_serde this should fix the inconsistency with de-serialization as map.

The design was initially proposed in #96 (comment 40504)

Relates to #96

Ensure that

  • New code is covered by tests
  • API is documented
  • Changelog is up to date changelog was not updated as the _Encode trait and its derive macro are not yet ready
  • Version is bumped in the appropriate Cargo.toml files
Edited by Егор Ивков

Merge request reports