Struct edge::value::Deserializer []

pub struct Deserializer {
    // some fields omitted
}

Creates a serde::Deserializer from a json::Value object.

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 deserialize<V>(&mut self, visitor: V) -> Result<V::Value, Error> where V: Visitor

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

fn deserialize_enum<V>(&mut self, _name: &str, _variants: &'static [&'static str], visitor: V) -> Result<V::Value, Error> where V: EnumVisitor

fn deserialize_newtype_struct<V>(&mut self, _name: &'static str, visitor: V) -> Result<V::Value, Deserializer::Error> where V: Visitor