Struct atom_syndication::SourceBuilder
source · pub struct SourceBuilder { /* private fields */ }Expand description
Builder for Source.
Implementations§
source§impl SourceBuilder
impl SourceBuilder
sourcepub fn title<VALUE: Into<Text>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<Text>>(&mut self, value: VALUE) -> &mut Self
A human-readable title for the feed.
sourcepub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A universally unique and permanent URI.
sourcepub fn updated<VALUE: Into<FixedDateTime>>(&mut self, value: VALUE) -> &mut Self
pub fn updated<VALUE: Into<FixedDateTime>>(&mut self, value: VALUE) -> &mut Self
The last time the feed was modified in a significant way.
The authors of the feed.
The authors of the feed.
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 that the feed belongs to.
sourcepub fn category<VALUE>(&mut self, item: VALUE) -> &mut Selfwhere
Vec<Category>: Default + Extend<VALUE>,
pub fn category<VALUE>(&mut self, item: VALUE) -> &mut Selfwhere
Vec<Category>: Default + Extend<VALUE>,
The categories that the feed belongs to.
sourcepub fn contributors<VALUE: Into<Vec<Person>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn contributors<VALUE: Into<Vec<Person>>>(
&mut self,
value: VALUE
) -> &mut Self
The contributors to the feed.
sourcepub fn contributor<VALUE>(&mut self, item: VALUE) -> &mut Selfwhere
Vec<Person>: Default + Extend<VALUE>,
pub fn contributor<VALUE>(&mut self, item: VALUE) -> &mut Selfwhere
Vec<Person>: Default + Extend<VALUE>,
The contributors to the feed.
sourcepub fn generator<VALUE: Into<Option<Generator>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn generator<VALUE: Into<Option<Generator>>>(
&mut self,
value: VALUE
) -> &mut Self
The software used to generate the feed.
sourcepub fn icon<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn icon<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
A small image which provides visual identification for the feed.
sourcepub fn links<VALUE: Into<Vec<Link>>>(&mut self, value: VALUE) -> &mut Self
pub fn links<VALUE: Into<Vec<Link>>>(&mut self, value: VALUE) -> &mut Self
The Web pages related to the feed.
sourcepub fn link<VALUE>(&mut self, item: VALUE) -> &mut Selfwhere
Vec<Link>: Default + Extend<VALUE>,
pub fn link<VALUE>(&mut self, item: VALUE) -> &mut Selfwhere
Vec<Link>: Default + Extend<VALUE>,
The Web pages related to the feed.
sourcepub fn logo<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn logo<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
A larger image which provides visual identification for the feed.
Trait Implementations§
source§impl Clone for SourceBuilder
impl Clone for SourceBuilder
source§fn clone(&self) -> SourceBuilder
fn clone(&self) -> SourceBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more