Struct rss::ItemBuilder
source · pub struct ItemBuilder { /* private fields */ }
Expand description
Builder for Item
.
Implementations§
source§impl ItemBuilder
impl ItemBuilder
sourcepub fn title<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The title of the item.
sourcepub fn link<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn link<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The URL of the item.
sourcepub fn description<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn description<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self
The item synopsis.
The email address of author of the item.
sourcepub fn categories<VALUE: Into<Vec<Category>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn categories<VALUE: Into<Vec<Category>>>( &mut self, value: VALUE ) -> &mut Self
The categories the item belongs to.
sourcepub fn category<VALUE>(&mut self, item: VALUE) -> &mut Self
pub fn category<VALUE>(&mut self, item: VALUE) -> &mut Self
The categories the item belongs to.
sourcepub fn comments<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn comments<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self
The URL for the comments page of the item.
sourcepub fn enclosure<VALUE: Into<Option<Enclosure>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn enclosure<VALUE: Into<Option<Enclosure>>>( &mut self, value: VALUE ) -> &mut Self
The description of a media object that is attached to the item.
sourcepub fn guid<VALUE: Into<Option<Guid>>>(&mut self, value: VALUE) -> &mut Self
pub fn guid<VALUE: Into<Option<Guid>>>(&mut self, value: VALUE) -> &mut Self
A unique identifier for the item.
sourcepub fn pub_date<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn pub_date<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self
The date the item was published as an RFC 2822 timestamp.
sourcepub fn source<VALUE: Into<Option<Source>>>(&mut self, value: VALUE) -> &mut Self
pub fn source<VALUE: Into<Option<Source>>>(&mut self, value: VALUE) -> &mut Self
The RSS channel the item came from.
sourcepub fn content<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn content<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self
The HTML contents of the item.
sourcepub fn extensions<VALUE: Into<ExtensionMap>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn extensions<VALUE: Into<ExtensionMap>>( &mut self, value: VALUE ) -> &mut Self
The extensions for the item.
sourcepub fn itunes_ext<VALUE: Into<Option<ITunesItemExtension>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn itunes_ext<VALUE: Into<Option<ITunesItemExtension>>>( &mut self, value: VALUE ) -> &mut Self
The iTunes extension for the item.
sourcepub fn dublin_core_ext<VALUE: Into<Option<DublinCoreExtension>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn dublin_core_ext<VALUE: Into<Option<DublinCoreExtension>>>( &mut self, value: VALUE ) -> &mut Self
The Dublin Core extension for the item.
Trait Implementations§
source§impl Clone for ItemBuilder
impl Clone for ItemBuilder
source§fn clone(&self) -> ItemBuilder
fn clone(&self) -> ItemBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ItemBuilder
impl RefUnwindSafe for ItemBuilder
impl Send for ItemBuilder
impl Sync for ItemBuilder
impl Unpin for ItemBuilder
impl UnwindSafe for ItemBuilder
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