Struct rss::ChannelBuilder

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

Builder for Channel.

Implementations§

source§

impl ChannelBuilder

source

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

The name of the channel.

The URL for the website corresponding to the channel.

source

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

A description of the channel.

source

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

The language of the channel.

source

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

The copyright notice for the channel.

source

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

The email address for the managing editor.

source

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

The email address for the webmaster.

source

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

The publication date for the content of the channel as an RFC822 timestamp.

source

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

The date that the contents of the channel last changed as an RFC822 timestamp.

source

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

The categories the channel belongs to.

source

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

The categories the channel belongs to.

source

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

A string indicating the program used to generate the channel.

source

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

A URL that points to the documentation for the RSS format.

source

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

The cloud to register with to be notified of updates to the channel.

source

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

The PICS rating for the channel.

source

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

The number of minutes the channel can be cached before refreshing.

source

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

An image that can be displayed with the channel.

source

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

A text input box that can be displayed with the channel.

source

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

A hint to tell the aggregator which hours it can skip.

source

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

A hint to tell the aggregator which hours it can skip.

source

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

A hint to tell the aggregator which days it can skip.

source

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

A hint to tell the aggregator which days it can skip.

source

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

The items in the channel.

source

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

The items in the channel.

source

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

The extensions for the channel.

source

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

The extensions for the channel.

source

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

The iTunes extension for the channel.

source

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

The Dublin Core extension for the channel.

source

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

The Syndication extension for the channel.

source

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

The namespaces present in the RSS tag.

source

pub fn namespace<VALUE>(&mut self, item: VALUE) -> &mut Selfwhere BTreeMap<String, String>: Default + Extend<VALUE>,

The namespaces present in the RSS tag.

source§

impl ChannelBuilder

source

pub fn build(&self) -> Channel

Builds a new Channel.

Trait Implementations§

source§

impl Clone for ChannelBuilder

source§

fn clone(&self) -> ChannelBuilder

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 ChannelBuilder

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.