logo
pub struct Decoder { /* private fields */ }
Expand description

A structure to decode JSON to values in rust.

Implementations

Creates a new decoder instance for decoding the specified JSON value.

Trait Implementations

The error type for method results.

Read a nil value.

Read a usize value.

Read a u8 value.

Read a u16 value.

Read a u32 value.

Read a u64 value.

Read a isize value.

Read a i8 value.

Read a i16 value.

Read a i32 value.

Read a i64 value.

Read a f32 value.

Read a f64 value.

Read a bool value.

Read a char value.

Read a string value.

Read an enumeration value. Read more

Read an enumeration value. Read more

Read an unnamed data item for an enumeration variant. Read more

Read an enumeration value. Read more

Read a named data item for an enumeration variant. Read more

Read an struct value. Read more

Read a field for a struct value. Read more

Read a tuple value. Read more

Read a data item for a tuple. Read more

Read a tuple struct value. Read more

Read a data item for a tuple struct. Read more

Read an optional value. Read more

Read a sequence of values. Read more

Read an element in the sequence. Read more

Read an associative container (map). Read more

Read the key for an entry in a map. Read more

Read the value for an entry in a map. Read more

Record a decoding error. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.