DeserializeSync

Trait DeserializeSync 

Source
pub trait DeserializeSync<'de, R>: Sized
where R: XmlReaderSync<'de>,
{ type Error; // Required method fn deserialize(reader: &mut R) -> Result<Self, Self::Error>; }
Expand description

Trait that could be implemented by types to support deserialization from XML using the quick_xml crate.

Required Associated Types§

Source

type Error

Error that is returned by the deserialize method.

Required Methods§

Source

fn deserialize(reader: &mut R) -> Result<Self, Self::Error>

Deserialize the type from the passed reader.

§Errors

Will return a suitable error if the operation failed.

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§

Source§

impl<'de, R, X> DeserializeSync<'de, R> for X
where R: XmlReaderSync<'de>, X: WithDeserializer,