use rdxl::{xtype,xrender}; xtype!( ); xrender!(Rss, {{format!(r#""#, self.xml_version, self.xml_encoding)}} {{ for c in self.children.iter() {{ {{ let RssChildren::RssChannel(c) = c; }} {{ for rc in c.children.iter() {{ {{ if let RssChannelChildren::RssChannelTitle(t) = rc {{ {{ t.title }} }} else if let RssChannelChildren::RssChannelDescription(t) = rc {{ {{ t.description }} }} else if let RssChannelChildren::RssChannelLink(t) = rc {{ {{ t.link }} }} else if let RssChannelChildren::RssChannelLastBuildDate(t) = rc {{ {{ t.date }} }} else if let RssChannelChildren::RssChannelPubDate(t) = rc {{ {{ t.date }} }} else if let RssChannelChildren::RssChannelTTL(t) = rc {{ {{ t.ttl }} }} else if let RssChannelChildren::RssItem(t) = rc {{ {{ for ic in t.children.iter() {{ {{ if let RssItemChildren::RssItemTitle(c) = ic {{ {{ c.title }} }} else if let RssItemChildren::RssItemDescription(c) = ic {{ {{ c.description }} }} else if let RssItemChildren::RssItemLink(c) = ic {{ {{ c.link }} }} else if let RssItemChildren::RssItemGuid(c) = ic {{ {{ c.guid }} }} else if let RssItemChildren::RssItemPubDate(c) = ic {{ {{ c.date }} }} }} }} }} }} }} }} }} }} }} );