Struct serde::json::value::Deserializer [] [src]

pub struct Deserializer {
    // some fields omitted
}

Methods

impl Deserializer

fn new(value: Value) -> Deserializer

Creates a new deserializer instance for deserializing the specified JSON value.

Trait Implementations

impl Deserializer for Deserializer

type Error = Error

fn visit<V>(&mut self, visitor: V) -> Result<V::Value, Error> where V: Visitor

fn visit_option<V>(&mut self, visitor: V) -> Result<V::Value, Error> where V: Visitor

fn visit_enum<V>(&mut self, _name: &str, visitor: V) -> Result<V::Value, Error> where V: EnumVisitor

fn visit_seq<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_map<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_named_unit<V>(&mut self, _name: &str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_named_seq<V>(&mut self, _name: &str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_named_map<V>(&mut self, _name: &str, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

fn visit_bytes<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor