macro_rules! macro_generate_rss {
    ($writer:expr, $options:expr) => { ... };
}
Expand description

macro_generate_rss Macro

Generates an RSS feed from the given RssData struct.

This macro generates a complete RSS feed in XML format based on the data contained in the provided RssData. It dynamically generates XML elements for each field of the RssData using the provided metadata values and writes them to the specified Writer instance.

Arguments

  • $writer - The Writer instance to write the generated XML events.
  • $options - The RssData instance containing the metadata values for generating the RSS feed.

Returns

Returns Result<(), Box<dyn Error>> indicating success or an error if XML writing fails.