pub struct FeedEntry {
pub url: String,
pub title: String,
pub summary: Option<String>,
pub content_html: Option<String>,
pub published: Option<String>,
pub updated: Option<String>,
pub author: Option<String>,
pub tags: Vec<String>,
pub id: Option<String>,
pub image: Option<String>,
}Expand description
One item in a Feed.
Fields§
§url: String§title: String§summary: Option<String>A short plain-text summary.
content_html: Option<String>The full entry as HTML.
published: Option<String>§updated: Option<String>§id: Option<String>Stable identifier. Defaults to url.
image: Option<String>A representative image.
Implementations§
Source§impl FeedEntry
impl FeedEntry
pub fn new(url: impl Into<String>, title: impl Into<String>) -> FeedEntry
pub fn summary(self, text: impl Into<String>) -> FeedEntry
pub fn content_html(self, html: impl Into<String>) -> FeedEntry
pub fn published(self, date: impl Into<String>) -> FeedEntry
pub fn updated(self, date: impl Into<String>) -> FeedEntry
pub fn tag(self, tag: impl Into<String>) -> FeedEntry
pub fn image(self, url: impl Into<String>) -> FeedEntry
pub fn id(self, id: impl Into<String>) -> FeedEntry
Trait Implementations§
Auto Trait Implementations§
impl Forget for FeedEntry
impl Freeze for FeedEntry
impl Move for FeedEntry
impl RefUnwindSafe for FeedEntry
impl Send for FeedEntry
impl Sync for FeedEntry
impl Unpin for FeedEntry
impl UnsafeUnpin for FeedEntry
impl UnwindSafe for FeedEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more