Struct rss::ChannelBuilder
source · [−]pub struct ChannelBuilder { /* private fields */ }
Expand description
Builder for Channel
.
Implementations
sourceimpl 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 where
Vec<Category>: Default + Extend<VALUE>,
pub fn category<VALUE>(&mut self, item: VALUE) -> &mut Self where
Vec<Category>: Default + Extend<VALUE>,
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 where
Vec<String>: Default + Extend<VALUE>,
pub fn skip_hour<VALUE>(&mut self, item: VALUE) -> &mut Self where
Vec<String>: Default + Extend<VALUE>,
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 where
Vec<String>: Default + Extend<VALUE>,
pub fn skip_day<VALUE>(&mut self, item: VALUE) -> &mut Self where
Vec<String>: Default + Extend<VALUE>,
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 item<VALUE>(&mut self, item: VALUE) -> &mut Self where
Vec<Item>: Default + Extend<VALUE>,
pub fn item<VALUE>(&mut self, item: VALUE) -> &mut Self where
Vec<Item>: Default + Extend<VALUE>,
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 extension<VALUE>(&mut self, item: VALUE) -> &mut Self where
ExtensionMap: Default + Extend<VALUE>,
pub fn extension<VALUE>(&mut self, item: VALUE) -> &mut Self where
ExtensionMap: Default + Extend<VALUE>,
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.
sourceimpl ChannelBuilder
impl ChannelBuilder
Trait Implementations
sourceimpl Clone for ChannelBuilder
impl Clone for ChannelBuilder
sourcefn clone(&self) -> ChannelBuilder
fn clone(&self) -> ChannelBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChannelBuilder
impl Send for ChannelBuilder
impl Sync for ChannelBuilder
impl Unpin for ChannelBuilder
impl UnwindSafe for ChannelBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more