XmlDeserializable

Trait XmlDeserializable 

Source
pub trait XmlDeserializable {
    // Required method
    fn from_xml(
        reader: &mut Reader<&[u8]>,
        event: Option<&BytesStart<'_>>,
        tag_name: Option<&str>,
    ) -> Result<Option<Self>, PError>
       where Self: Sized;

    // Provided method
    fn inner_name() -> Option<String> { ... }
}

Required Methods§

Source

fn from_xml( reader: &mut Reader<&[u8]>, event: Option<&BytesStart<'_>>, tag_name: Option<&str>, ) -> Result<Option<Self>, PError>
where Self: Sized,

Provided Methods§

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.

Implementations on Foreign Types§

Source§

impl XmlDeserializable for bool

Source§

fn from_xml( reader: &mut Reader<&[u8]>, _: Option<&BytesStart<'_>>, _tag_name: Option<&str>, ) -> Result<Option<Self>, PError>

Source§

impl XmlDeserializable for char

Source§

fn from_xml( reader: &mut Reader<&[u8]>, _: Option<&BytesStart<'_>>, _tag_name: Option<&str>, ) -> Result<Option<Self>, PError>

Source§

impl XmlDeserializable for String

Source§

fn from_xml( reader: &mut Reader<&[u8]>, _: Option<&BytesStart<'_>>, _tag_name: Option<&str>, ) -> Result<Option<Self>, PError>

Source§

impl<T: XmlDeserializable> XmlDeserializable for Vec<T>

Source§

fn from_xml( reader: &mut Reader<&[u8]>, start_event: Option<&BytesStart<'_>>, outer_tag_name: Option<&str>, ) -> Result<Option<Self>, PError>

Implementors§

Source§

impl<T: FromStr + Number> XmlDeserializable for T
where PError: From<<T as FromStr>::Err>,