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