xml-struct-types 0.0.1-alpha

Types used by structs generated by [xml-struct-gen](https://github.com/richardstephens/xml-struct-gen-rs) tool.
Documentation
1
2
3
4
5
6
7
8
9
use crate::v1::error::{XmlParseError, XmlWriteError};

pub trait XmlStructDocument {
    fn parse_document<R: std::io::Read>(reader: &mut R) -> Result<Self, XmlParseError>
    where
        Self: Sized;

    fn write_document<W: std::io::Write>(&self, w: &mut W) -> Result<(), XmlWriteError>;
}