1 2 3 4 5 6 7 8 9 10
use std::io::BufRead; use quick_xml::events::attributes::Attributes; use quick_xml::Reader; use crate::error::Error; pub(crate) trait FromXml: Sized { fn from_xml<R: BufRead>(reader: &mut Reader<R>, atts: Attributes<'_>) -> Result<Self, Error>; }