From 05134a76db9aa84d7f2d4c3e77ec390409aa5f4c Mon Sep 17 00:00:00 2001 From: aaron-jack-manning Date: Sat, 3 Feb 2024 15:53:28 +1100 Subject: [PATCH] loosen rss requirements --- src/rss.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rss.rs b/src/rss.rs index bb87e23..1372646 100644 --- a/src/rss.rs +++ b/src/rss.rs @@ -20,7 +20,7 @@ pub struct Rss<'a> { pub struct Channel<'a> { #[serde(rename = "item", default)] pub (crate) items : Vec>, - pub (crate) link : Cow<'a, str>, + pub (crate) link : Option>, pub (crate) title : Cow<'a, str>, pub (crate) description : Option>, #[serde(rename = "{http://www.itunes.com/dtds/podcast-1.0.dtd}itunes:author")] @@ -34,7 +34,7 @@ pub struct Channel<'a> { #[derive(Debug, serde::Deserialize)] pub struct Image<'a> { - pub (crate) link : Cow<'a, str>, + pub (crate) link : Option>, pub (crate) title : Cow<'a, str>, pub (crate) url : Cow<'a, str>, }