rss icon indicating copy to clipboard operation
rss copied to clipboard

Make ToXml public

Open Pajn opened this issue 3 years ago • 4 comments

Would it be possible to either make the toxml module public or add a pub use crate::toxml::ToXml to lib.rs?

Pajn avatar Jan 29 '22 22:01 Pajn

May you elaborate why this may be needed?

andy128k avatar Jan 29 '22 23:01 andy128k

I want to encode individual items to xml. I'm subscribing to an RSS feed and will do a bunch of data processing on each item. I need to store the input for followup and possible reprocessing. I could do that by pulling everything out to a struct of my own and use serde, however as from_xml is already public on individual items it feels natural that the libray would allow me to du the mirror operation on individual items as well.

Pajn avatar Jan 30 '22 08:01 Pajn

I think that from_xml was made public mistakenly. It should be pub(crate).

andy128k avatar Jan 30 '22 15:01 andy128k

A small bump to agree with the request of this issue.

I'm pretty sure many use case that involves replication of partial content of the RSS feeds would benefit from this.

Asone avatar Feb 04 '23 11:02 Asone