pub struct RssItem {
pub title: String,
pub link: String,
pub description: String,
pub pub_date: String,
pub guid: Option<String>,
pub author: Option<String>,
pub categories: Option<Vec<String>>,
}Expand description
One entry in a feed.
Fields§
§title: StringThe item headline.
link: StringThe item’s canonical URL.
description: StringA summary or the full content.
pub_date: StringAn RFC 822 date, e.g. Tue, 11 Aug 2026 10:00:00 +0000.
guid: Option<String>A globally unique identifier. Defaults to link.
The author’s email address.
categories: Option<Vec<String>>Category labels.
Implementations§
Source§impl RssItem
impl RssItem
Sourcepub fn new(
title: impl Into<String>,
link: impl Into<String>,
description: impl Into<String>,
pub_date: impl Into<String>,
) -> Self
pub fn new( title: impl Into<String>, link: impl Into<String>, description: impl Into<String>, pub_date: impl Into<String>, ) -> Self
Creates an item. guid defaults to link, as it does in Winged-Swift’s
initializer — the default is applied here, not at render time.
Sets the author.
Sourcepub fn categories<S: Into<String>>(
self,
categories: impl IntoIterator<Item = S>,
) -> Self
pub fn categories<S: Into<String>>( self, categories: impl IntoIterator<Item = S>, ) -> Self
Sets the categories.
Trait Implementations§
impl Eq for RssItem
impl StructuralPartialEq for RssItem
Auto Trait Implementations§
impl Freeze for RssItem
impl RefUnwindSafe for RssItem
impl Send for RssItem
impl Sync for RssItem
impl Unpin for RssItem
impl UnsafeUnpin for RssItem
impl UnwindSafe for RssItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more