serde-rs / serde-rs.github.io

https://serde.rs
Creative Commons Attribution Share Alike 4.0 International
22 stars 96 forks source link

Document `expecting` container attribute #153

Closed AlexTMjugador closed 1 year ago

AlexTMjugador commented 1 year ago

This attribute has flew under the radar of serde documentation since it was introduced by https://github.com/serde-rs/serde/pull/1916. Given how useful it can be to improve untagged enum deserialization error messages and that its introduction has been uncontroversial so far, I think it's a good idea to document it.