serde-xml-rs icon indicating copy to clipboard operation
serde-xml-rs copied to clipboard

Return error on composite key.

Open kevincox opened this issue 8 years ago • 0 comments
trafficstars

https://github.com/RReverser/serde-xml-rs/blob/d824bca2f193d554bfe58d5de211994c7079bf12/src/ser/var.rs#L49

IIUC this can be done by creating a new serializer that is restricted to only "key safe" types instread of returning parent. Then that serilizer throws an error for anything that can't be used as a key.

kevincox avatar Aug 31 '17 22:08 kevincox