Trait Deserializer

Source
pub trait Deserializer<'de>: Sized {
    type Error: Error;

    // Required methods
    fn deserialize_any<V>(self, visitor: V) -> Result<V::Value, Self::Error>
       where V: Visitor<'de>;
    fn deserialize_seq<V>(self, visitor: V) -> Result<V::Value, Self::Error>
       where V: Visitor<'de>;
}
Expand description

A type that can be used to deserialize XML documents.

Required Associated Types§

Source

type Error: Error

The error type that can be returned from the deserializer.

Required Methods§

Source

fn deserialize_any<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Deserializes a value from the deserializer.

Source

fn deserialize_seq<V>(self, visitor: V) -> Result<V::Value, Self::Error>
where V: Visitor<'de>,

Deserializes a value from the deserializer, but tries to do it from a sequence of values.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§