xml_struct_types/v1/
traits.rs

1use crate::v1::error::{XmlParseError, XmlWriteError};
2
3pub trait XmlStructDocument {
4    fn parse_document<R: std::io::Read>(reader: &mut R) -> Result<Self, XmlParseError>
5    where
6        Self: Sized;
7
8    fn write_document<W: std::io::Write>(&self, w: &mut W) -> Result<(), XmlWriteError>;
9}