Trait serde::de::Visitor
[−]
[src]
pub trait Visitor { type Value; fn visit_bool<E>(&mut self, _v: bool) -> Result<Self::Value, E> where E: Error { ... } fn visit_isize<E>(&mut self, v: isize) -> Result<Self::Value, E> where E: Error { ... } fn visit_i8<E>(&mut self, v: i8) -> Result<Self::Value, E> where E: Error { ... } fn visit_i16<E>(&mut self, v: i16) -> Result<Self::Value, E> where E: Error { ... } fn visit_i32<E>(&mut self, v: i32) -> Result<Self::Value, E> where E: Error { ... } fn visit_i64<E>(&mut self, _v: i64) -> Result<Self::Value, E> where E: Error { ... } fn visit_usize<E>(&mut self, v: usize) -> Result<Self::Value, E> where E: Error { ... } fn visit_u8<E>(&mut self, v: u8) -> Result<Self::Value, E> where E: Error { ... } fn visit_u16<E>(&mut self, v: u16) -> Result<Self::Value, E> where E: Error { ... } fn visit_u32<E>(&mut self, v: u32) -> Result<Self::Value, E> where E: Error { ... } fn visit_u64<E>(&mut self, _v: u64) -> Result<Self::Value, E> where E: Error { ... } fn visit_f32<E>(&mut self, v: f32) -> Result<Self::Value, E> where E: Error { ... } fn visit_f64<E>(&mut self, _v: f64) -> Result<Self::Value, E> where E: Error { ... } fn visit_char<E>(&mut self, v: char) -> Result<Self::Value, E> where E: Error { ... } fn visit_str<E>(&mut self, _v: &str) -> Result<Self::Value, E> where E: Error { ... } fn visit_string<E>(&mut self, v: String) -> Result<Self::Value, E> where E: Error { ... } fn visit_unit<E>(&mut self) -> Result<Self::Value, E> where E: Error { ... } fn visit_named_unit<E>(&mut self, _name: &str) -> Result<Self::Value, E> where E: Error { ... } fn visit_none<E>(&mut self) -> Result<Self::Value, E> where E: Error { ... } fn visit_some<D>(&mut self, _deserializer: &mut D) -> Result<Self::Value, D::Error> where D: Deserializer { ... } fn visit_seq<V>(&mut self, _visitor: V) -> Result<Self::Value, V::Error> where V: SeqVisitor { ... } fn visit_map<V>(&mut self, _visitor: V) -> Result<Self::Value, V::Error> where V: MapVisitor { ... } fn visit_bytes<E>(&mut self, _v: &[u8]) -> Result<Self::Value, E> where E: Error { ... } fn visit_byte_buf<E>(&mut self, _v: Vec<u8>) -> Result<Self::Value, E> where E: Error { ... } }
Associated Types
type Value
Provided Methods
fn visit_bool<E>(&mut self, _v: bool) -> Result<Self::Value, E> where E: Error
fn visit_isize<E>(&mut self, v: isize) -> Result<Self::Value, E> where E: Error
fn visit_i8<E>(&mut self, v: i8) -> Result<Self::Value, E> where E: Error
fn visit_i16<E>(&mut self, v: i16) -> Result<Self::Value, E> where E: Error
fn visit_i32<E>(&mut self, v: i32) -> Result<Self::Value, E> where E: Error
fn visit_i64<E>(&mut self, _v: i64) -> Result<Self::Value, E> where E: Error
fn visit_usize<E>(&mut self, v: usize) -> Result<Self::Value, E> where E: Error
fn visit_u8<E>(&mut self, v: u8) -> Result<Self::Value, E> where E: Error
fn visit_u16<E>(&mut self, v: u16) -> Result<Self::Value, E> where E: Error
fn visit_u32<E>(&mut self, v: u32) -> Result<Self::Value, E> where E: Error
fn visit_u64<E>(&mut self, _v: u64) -> Result<Self::Value, E> where E: Error
fn visit_f32<E>(&mut self, v: f32) -> Result<Self::Value, E> where E: Error
fn visit_f64<E>(&mut self, _v: f64) -> Result<Self::Value, E> where E: Error
fn visit_char<E>(&mut self, v: char) -> Result<Self::Value, E> where E: Error
fn visit_str<E>(&mut self, _v: &str) -> Result<Self::Value, E> where E: Error
fn visit_string<E>(&mut self, v: String) -> Result<Self::Value, E> where E: Error
fn visit_unit<E>(&mut self) -> Result<Self::Value, E> where E: Error
fn visit_named_unit<E>(&mut self, _name: &str) -> Result<Self::Value, E> where E: Error
fn visit_none<E>(&mut self) -> Result<Self::Value, E> where E: Error
fn visit_some<D>(&mut self, _deserializer: &mut D) -> Result<Self::Value, D::Error> where D: Deserializer
fn visit_seq<V>(&mut self, _visitor: V) -> Result<Self::Value, V::Error> where V: SeqVisitor
fn visit_map<V>(&mut self, _visitor: V) -> Result<Self::Value, V::Error> where V: MapVisitor
fn visit_bytes<E>(&mut self, _v: &[u8]) -> Result<Self::Value, E> where E: Error
fn visit_byte_buf<E>(&mut self, _v: Vec<u8>) -> Result<Self::Value, E> where E: Error
Implementors
impl Visitor for ByteBufVisitor
impl Visitor for UnitVisitor
impl<T: Deserialize + FromPrimitive> Visitor for PrimitiveVisitor<T>
impl<T> Visitor for BTreeSetVisitor<T> where T: Deserialize + Eq + Ord
impl<T> Visitor for HashSetVisitor<T> where T: Deserialize + Eq + Hash
impl<T> Visitor for VecVisitor<T> where T: Deserialize
impl<K, V> Visitor for BTreeMapVisitor<K, V> where K: Deserialize + Ord, V: Deserialize
impl<K, V> Visitor for HashMapVisitor<K, V> where K: Deserialize + Eq + Hash, V: Deserialize