#[derive(Debug, PartialEq, Eq)] pub struct Icon { pub name: String, pub url: String, pub width: u32, pub height: u32, pub content_type: String, } impl Clone for Icon { fn clone(&self) -> Self { Icon { name: self.name.clone(), url: self.url.clone(), width: self.width, height: self.height, content_type: self.content_type.clone(), } } } #[derive(Debug, PartialEq, Eq)] pub enum ParseType { Link { url: String, title: String }, Img(Icon), Count(u32), ResourceAdd, ResourceLast, Duration { duration: u64, unit: String }, }