[][src]Struct rss::ChannelBuilder

pub struct ChannelBuilder { /* fields omitted */ }

Builder for Channel.

Methods

impl ChannelBuilder[src]

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

The name of the channel.

The URL for the website corresponding to the channel.

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

A description of the channel.

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

The language of the channel.

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

The copyright notice for the channel.

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

The email address for the managing editor.

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

The email address for the webmaster.

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

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

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

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

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

The categories the channel belongs to.

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

A string indicating the program used to generate the channel.

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

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

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

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

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

The PICS rating for the channel.

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

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

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

An image that can be displayed with the channel.

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

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

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

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

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

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

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

The items in the channel.

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

The extensions for the channel.

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

The iTunes extension for the channel.

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

The Dublin Core extension for the channel.

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

The Syndication extension for the channel.

pub fn namespaces<VALUE: Into<HashMap<String, String>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

The namespaces present in the RSS tag.

pub fn build(&self) -> Result<Channel, String>[src]

Builds a new Channel.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for ChannelBuilder[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for ChannelBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]