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

pub struct StrDeserializer<'a>(_);

A helper deserializer that deserializes a &str.

Trait Implementations

impl<'a> Deserializer for StrDeserializer<'a>

type Error = Error

fn visit<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_option<V>(&mut self, visitor: V) -> Result<V::Value, Self::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_bytes<V>(&mut self, visitor: V) -> Result<V::Value, Self::Error> where V: Visitor

impl<'a> VariantVisitor for StrDeserializer<'a>

type Error = Error

fn visit_variant<T>(&mut self) -> Result<T, Error> where T: Deserialize

fn visit_unit(&mut self) -> Result<(), Error>

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