pub struct ChannelBuilder { /* private fields */ }
Expand description
Builder for Channel
.
Implementations§
Source§impl ChannelBuilder
impl ChannelBuilder
Sourcepub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The name of the channel.
Sourcepub fn link<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn link<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The URL for the website corresponding to the channel.
Sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A description of the channel.
Sourcepub fn language<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn language<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
The language of the channel.
Sourcepub fn copyright<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn copyright<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
The copyright notice for the channel.
Sourcepub fn managing_editor<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn managing_editor<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
The email address for the managing editor.
Sourcepub fn webmaster<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn webmaster<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
The email address for the webmaster.
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 publication date for the content of the channel as an RFC822 timestamp.
Sourcepub fn last_build_date<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
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.
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 channel 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 channel belongs to.
Sourcepub fn generator<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn generator<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
A string indicating the program used to generate the channel.
Sourcepub fn docs<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn docs<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
A URL that points to the documentation for the RSS format.
Sourcepub fn cloud<VALUE: Into<Option<Cloud>>>(&mut self, value: VALUE) -> &mut Self
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.
Sourcepub fn rating<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn rating<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The PICS rating for the channel.
Sourcepub fn ttl<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn ttl<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The number of minutes the channel can be cached before refreshing.
Sourcepub fn image<VALUE: Into<Option<Image>>>(&mut self, value: VALUE) -> &mut Self
pub fn image<VALUE: Into<Option<Image>>>(&mut self, value: VALUE) -> &mut Self
An image that can be displayed with the channel.
Sourcepub fn text_input<VALUE: Into<Option<TextInput>>>(
&mut self,
value: VALUE,
) -> &mut Self
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.
Sourcepub fn skip_hours<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
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.
Sourcepub fn skip_hour<VALUE>(&mut self, item: VALUE) -> &mut Self
pub fn skip_hour<VALUE>(&mut self, item: VALUE) -> &mut Self
A hint to tell the aggregator which hours it can skip.
Sourcepub fn skip_days<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self
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.
Sourcepub fn skip_day<VALUE>(&mut self, item: VALUE) -> &mut Self
pub fn skip_day<VALUE>(&mut self, item: VALUE) -> &mut Self
A hint to tell the aggregator which days it can skip.
Sourcepub fn items<VALUE: Into<Vec<Item>>>(&mut self, value: VALUE) -> &mut Self
pub fn items<VALUE: Into<Vec<Item>>>(&mut self, value: VALUE) -> &mut Self
The items in the channel.
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 channel.
Sourcepub fn itunes_ext<VALUE: Into<Option<ITunesChannelExtension>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn itunes_ext<VALUE: Into<Option<ITunesChannelExtension>>>( &mut self, value: VALUE, ) -> &mut Self
The iTunes extension for the channel.
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 channel.
The Syndication extension for the channel.
Trait Implementations§
Source§impl Clone for ChannelBuilder
impl Clone for ChannelBuilder
Source§fn clone(&self) -> ChannelBuilder
fn clone(&self) -> ChannelBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more