loosen rss requirements

This commit is contained in:
aaron-jack-manning 2024-02-03 15:53:28 +11:00
parent 2ab97aa10d
commit 05134a76db

View File

@ -20,7 +20,7 @@ pub struct Rss<'a> {
pub struct Channel<'a> {
#[serde(rename = "item", default)]
pub (crate) items : Vec<Item<'a>>,
pub (crate) link : Cow<'a, str>,
pub (crate) link : Option<Cow<'a, str>>,
pub (crate) title : Cow<'a, str>,
pub (crate) description : Option<Cow<'a, str>>,
#[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<Cow<'a, str>>,
pub (crate) title : Cow<'a, str>,
pub (crate) url : Cow<'a, str>,
}