Struct serde_json::de::Deserializer [] [src]

pub struct Deserializer<R> { /* fields omitted */ }

A structure that deserializes JSON into Rust values.

Methods

impl<I> Deserializer<IteratorRead<I>> where I: Iterator<Item=Result<u8>>
[src]

Creates a JSON parser from a std::iter::Iterator.

impl<R> Deserializer<IteratorRead<Bytes<R>>> where R: Read
[src]

Creates a JSON parser from an io::Read.

impl<'a> Deserializer<SliceRead<'a>>
[src]

Creates a JSON parser from a &[u8].

impl<'a> Deserializer<StrRead<'a>>
[src]

Creates a JSON parser from a &str.

impl<R: Read> Deserializer<R>
[src]

The Deserializer::end method should be called after a value has been fully deserialized. This allows the Deserializer to validate that the input stream is at the end or that it only has trailing whitespace.

Turn a JSON deserializer into an iterator over values of type T.

Trait Implementations

impl<'a, R: Read> Deserializer for &'a mut Deserializer<R>
[src]

The error type that can be returned if some error occurs during deserialization. Read more

Require the Deserializer to figure out how to drive the visitor based on what data type is in the input. Read more

Parses a null as a None, and any other values as a Some(...).

Parses a newtype struct as the underlying value.

Parses an enum as an object like {"$KEY":$VALUE}, where $VALUE is either a straight value, a [..], or a {..}.

Hint that the Deserialize type is expecting a bool value.

Hint that the Deserialize type is expecting a u8 value.

Hint that the Deserialize type is expecting a u16 value.

Hint that the Deserialize type is expecting a u32 value.

Hint that the Deserialize type is expecting a u64 value.

Hint that the Deserialize type is expecting an i8 value.

Hint that the Deserialize type is expecting an i16 value.

Hint that the Deserialize type is expecting an i32 value.

Hint that the Deserialize type is expecting an i64 value.

Hint that the Deserialize type is expecting a f32 value.

Hint that the Deserialize type is expecting a f64 value.

Hint that the Deserialize type is expecting a char value.

Hint that the Deserialize type is expecting a string value and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more

Hint that the Deserialize type is expecting a string value and would benefit from taking ownership of buffered data owned by the Deserializer. Read more

Hint that the Deserialize type is expecting a unit value.

Hint that the Deserialize type is expecting a sequence of values.

Hint that the Deserialize type is expecting a sequence of values and knows how many values there are without looking at the serialized data. Read more

Hint that the Deserialize type is expecting a byte array and does not benefit from taking ownership of buffered data owned by the Deserializer. Read more

Hint that the Deserialize type is expecting a byte array and would benefit from taking ownership of buffered data owned by the Deserializer. Read more

Hint that the Deserialize type is expecting a map of key-value pairs.

Hint that the Deserialize type is expecting a unit struct with a particular name. Read more

Hint that the Deserialize type is expecting a tuple struct with a particular name and number of fields. Read more

Hint that the Deserialize type is expecting a struct with a particular name and fields. Read more

Hint that the Deserialize type is expecting the name of a struct field. Read more

Hint that the Deserialize type is expecting a tuple value with a particular number of elements. Read more

Hint that the Deserialize type needs to deserialize a value whose type doesn't matter because it is ignored. Read more