Struct rss::ItemBuilder

source ·
pub struct ItemBuilder { /* private fields */ }
Expand description

Builder for Item.

Implementations§

source§

impl ItemBuilder

source

pub fn title<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self

The title of the item.

The URL of the item.

source

pub fn description<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

The item synopsis.

source

pub fn author<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self

The email address of author of the item.

source

pub fn categories<VALUE: Into<Vec<Category>>>( &mut self, value: VALUE ) -> &mut Self

The categories the item belongs to.

source

pub fn category<VALUE>(&mut self, item: VALUE) -> &mut Selfwhere Vec<Category>: Default + Extend<VALUE>,

The categories the item belongs to.

source

pub fn comments<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

The URL for the comments page of the item.

source

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.

source

pub fn guid<VALUE: Into<Option<Guid>>>(&mut self, value: VALUE) -> &mut Self

A unique identifier for the item.

source

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.

source

pub fn source<VALUE: Into<Option<Source>>>(&mut self, value: VALUE) -> &mut Self

The RSS channel the item came from.

source

pub fn content<VALUE: Into<Option<String>>>( &mut self, value: VALUE ) -> &mut Self

The HTML contents of the item.

source

pub fn extensions<VALUE: Into<ExtensionMap>>( &mut self, value: VALUE ) -> &mut Self

The extensions for the item.

source

pub fn extension<VALUE>(&mut self, item: VALUE) -> &mut Selfwhere ExtensionMap: Default + Extend<VALUE>,

The extensions for the item.

source

pub fn itunes_ext<VALUE: Into<Option<ITunesItemExtension>>>( &mut self, value: VALUE ) -> &mut Self

The iTunes extension for the item.

source

pub fn dublin_core_ext<VALUE: Into<Option<DublinCoreExtension>>>( &mut self, value: VALUE ) -> &mut Self

The Dublin Core extension for the item.

source§

impl ItemBuilder

source

pub fn build(&self) -> Item

Builds a new Item.

Trait Implementations§

source§

impl Clone for ItemBuilder

source§

fn clone(&self) -> ItemBuilder

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Default for ItemBuilder

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.