Module de

Source
Expand description

Deserialize JSON data to a Rust data structure.

MacrosΒ§

check_recursion πŸ”’
deserialize_number πŸ”’
deserialize_numeric_key πŸ”’
if_checking_recursion_limit πŸ”’
overflow πŸ”’

StructsΒ§

Deserializer
A structure that deserializes JSON into Rust values.
IoRead
JSON input source that reads from a std::io input stream.
MapAccess πŸ”’
MapKey πŸ”’
Only deserialize from this after peeking a β€˜β€œβ€™ byte! Otherwise it may deserialize invalid JSON successfully.
SeqAccess πŸ”’
SliceRead
JSON input source that reads from a slice of bytes.
StrRead
JSON input source that reads from a UTF-8 string.
StreamDeserializer
Iterator that deserializes a stream into multiple JSON values.
UnitVariantAccess πŸ”’
VariantAccess πŸ”’

EnumsΒ§

ParserNumber πŸ”’

StaticsΒ§

POW10 πŸ”’

TraitsΒ§

Read
Trait used by the deserializer for iterating over input. This is manually β€œspecialized” for iterating over &[u8]. Once feature(specialization) is stable we can use actual specialization.

FunctionsΒ§

from_reader
Deserialize an instance of type T from an I/O stream of JSON.
from_slice
Deserialize an instance of type T from bytes of JSON text.
from_str
Deserialize an instance of type T from a string of JSON text.
from_trait πŸ”’