Serde: container attributes 'field_identifier' and 'variant_identifier' are not documented

Created on 1 May 2018  路  2Comments  路  Source: serde-rs/serde

The attribute field_identifier is shown in a comment in the example Manually deserialize struct, but I can't find any documentation explaining what it does.

The same applies to variant_identifier which I found while looking through the code.

docs

All 2 comments

@dtolnay I could find the documentation for transparent, from and into as container attributes, but the field_identifier and variant_identifier are still missing. Would you please shed some light on their usage?

Was this page helpful?
0 / 5 - 0 ratings