Trait serde::de::MapVisitor
[−]
[src]
pub trait MapVisitor { type Error: Error; fn visit_key<K>(&mut self) -> Result<Option<K>, Self::Error> where K: Deserialize; fn visit_value<V>(&mut self) -> Result<V, Self::Error> where V: Deserialize; fn end(&mut self) -> Result<(), Self::Error>; fn visit<K, V>(&mut self) -> Result<Option<(K, V)>, Self::Error> where K: Deserialize, V: Deserialize { ... } fn size_hint(&self) -> (usize, Option<usize>) { ... } fn missing_field<V>(&mut self, field: &'static str) -> Result<V, Self::Error> where V: Deserialize { ... } }
Associated Types
type Error: Error
Required Methods
fn visit_key<K>(&mut self) -> Result<Option<K>, Self::Error> where K: Deserialize
fn visit_value<V>(&mut self) -> Result<V, Self::Error> where V: Deserialize
fn end(&mut self) -> Result<(), Self::Error>
Provided Methods
fn visit<K, V>(&mut self) -> Result<Option<(K, V)>, Self::Error> where K: Deserialize, V: Deserialize
fn size_hint(&self) -> (usize, Option<usize>)
fn missing_field<V>(&mut self, field: &'static str) -> Result<V, Self::Error> where V: Deserialize
Implementors
impl<I, K, V> MapVisitor for MapDeserializer<I, K, V> where I: Iterator<Item=(K, V)>, K: ValueDeserializer, V: ValueDeserializer
impl<'a, V_> MapVisitor for &'a mut V_ where V_: MapVisitor