Struct serde::de::value::UnitDeserializer [] [src]

pub struct UnitDeserializer;

A helper deserializer that deserializes a ().

Trait Implementations

impl Deserializer for UnitDeserializer

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_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_enum<V>(&mut self, _enum: &str, _visitor: V) -> Result<V::Value, Self::Error> where V: EnumVisitor

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