pub struct ItunesFeedMeta {
pub author: Option<String>,
pub owner: Option<ItunesOwner>,
pub categories: Vec<ItunesCategory>,
pub explicit: Option<bool>,
pub image: Option<Url>,
pub keywords: Vec<String>,
pub podcast_type: Option<String>,
pub complete: Option<String>,
pub new_feed_url: Option<Url>,
pub subtitle: Option<String>,
pub summary: Option<String>,
pub block: Option<u8>,
}Expand description
iTunes podcast metadata for feeds
Contains podcast-level iTunes namespace metadata from the itunes: prefix.
Namespace URI: http://www.itunes.com/dtds/podcast-1.0.dtd
§Examples
use feedparser_rs::ItunesFeedMeta;
let mut itunes = ItunesFeedMeta::default();
itunes.author = Some("John Doe".to_string());
itunes.explicit = Some(false);
itunes.podcast_type = Some("episodic".to_string());
assert_eq!(itunes.author.as_deref(), Some("John Doe"));Fields§
Podcast author (itunes:author)
owner: Option<ItunesOwner>Podcast owner contact information (itunes:owner)
categories: Vec<ItunesCategory>Podcast categories with optional subcategories
explicit: Option<bool>Explicit content flag (itunes:explicit)
image: Option<Url>Podcast artwork URL (itunes:image href attribute)
keywords: Vec<String>Search keywords (itunes:keywords)
podcast_type: Option<String>Podcast type: “episodic” or “serial”
complete: Option<String>Podcast completion status (itunes:complete)
Raw XML text value from the feed (e.g., “Yes”, “No”).
new_feed_url: Option<Url>New feed URL for migrated podcasts (itunes:new-feed-url)
Indicates the podcast has moved to a new feed location.
§Security Warning
This URL comes from untrusted feed input and has NOT been validated for SSRF. Applications MUST validate URLs before fetching to prevent SSRF attacks.
subtitle: Option<String>Podcast subtitle (itunes:subtitle)
summary: Option<String>Podcast summary (itunes:summary)
block: Option<u8>Block flag: 1 = blocked (“yes”), 0 = not blocked (“no” or absent)
Normalized from itunes:block: “yes” → 1, any other value → 0.
Trait Implementations§
Source§impl Clone for ItunesFeedMeta
impl Clone for ItunesFeedMeta
Source§fn clone(&self) -> ItunesFeedMeta
fn clone(&self) -> ItunesFeedMeta
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more