use content
This commit is contained in:
parent
c4e21af95b
commit
4fcf745b3b
@ -22,6 +22,7 @@ struct Entry {
|
|||||||
published: Option<DateTime<Utc>>,
|
published: Option<DateTime<Utc>>,
|
||||||
updated: Option<DateTime<Utc>>,
|
updated: Option<DateTime<Utc>>,
|
||||||
summary: String,
|
summary: String,
|
||||||
|
content: Option<feed_rs::model::Content>,
|
||||||
link: Option<String>,
|
link: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,9 +63,10 @@ pub async fn poll_feed(
|
|||||||
.map(|feed_entry| Entry {
|
.map(|feed_entry| Entry {
|
||||||
id: feed_entry.id,
|
id: feed_entry.id,
|
||||||
title: get(feed_entry.title, "title"),
|
title: get(feed_entry.title, "title"),
|
||||||
summary: get(feed_entry.summary, "summary"),
|
|
||||||
published: feed_entry.published,
|
published: feed_entry.published,
|
||||||
updated: feed_entry.updated,
|
updated: feed_entry.updated,
|
||||||
|
summary: get(feed_entry.summary, "summary"),
|
||||||
|
content: feed_entry.content,
|
||||||
link: feed_entry.links.first().map(|l| l.href.clone()),
|
link: feed_entry.links.first().map(|l| l.href.clone()),
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
Loading…
Reference in New Issue
Block a user