feat: adds as_map attribute to Encode derive macro
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 datechangelog 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 Егор Ивков