mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-10-22 11:46:17 +00:00
As discussed in #1013, serialize_with functions attached to variants receive an argument for each inner value contained within the variant. Internally such a function is wired up to the serializer as if the variant were a newtype variant.