Skip to main content

Module de

Module de 

Source
Expand description

Buffer for deserializing data.

This is a copy and improvement of the serde private type: https://github.com/serde-rs/serde/blob/f85c4f2fa99c7f3b103e6e2580e75eb9313b00d0/serde/src/private/de.rs#L195 The code is very stable in the serde crate, so no maintainability problem is expected.

Since the type is private we copy the type here. serde is licensed as MIT+Apache2, the same as this crate.

This version carries improvements compared to serdeโ€™s version. The types support 128-bit integers, which is supported for all targets in Rust 1.40+. A value for is_human_readable is passed through all types, to preserve the information.

In the future this can hopefully be replaced by a public type in serde itself. https://github.com/serde-rs/serde/pull/2348

Macrosยง

forward_to_deserialize_other ๐Ÿ”’

Structsยง

ContentDeserializer ๐Ÿ”’
ContentRefDeserializer
Not public API.
ContentVisitor ๐Ÿ”’
EnumDeserializer ๐Ÿ”’
EnumRefDeserializer ๐Ÿ”’
FlatMapAccess ๐Ÿ”’
FlatMapDeserializer ๐Ÿ”’
FlatStructAccess ๐Ÿ”’
MapDeserializer ๐Ÿ”’
MapRefDeserializer ๐Ÿ”’
SeqDeserializer ๐Ÿ”’
SeqRefDeserializer ๐Ÿ”’
VariantDeserializer
VariantRefDeserializer ๐Ÿ”’

Enumsยง

Content ๐Ÿ”’
Used from generated code to buffer the contents of the Deserializer when deserializing untagged enums and internally tagged enums.

Functionsยง

content_as_str ๐Ÿ”’
flat_map_take_entry ๐Ÿ”’
Claims one key-value pair from a FlatMapDeserializerโ€™s field buffer if the field name matches any of the recognized ones.
visit_content_map ๐Ÿ”’
visit_content_map_ref ๐Ÿ”’
visit_content_seq ๐Ÿ”’
visit_content_seq_ref ๐Ÿ”’