Struct atom_syndication::ContentBuilder
[−]
[src]
pub struct ContentBuilder { /* fields omitted */ }
Builder for Content
.
Methods
impl ContentBuilder
[src]
fn value<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
The text value of the content.
fn src<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
[src]
The URI of where the content can be found.
fn content_type<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
[src]
&mut self,
value: VALUE
) -> &mut Self
Either "text", "html", "xhtml", or the MIME type of the content.
fn build(&self) -> Result<Content, String>
[src]
Trait Implementations
impl Default for ContentBuilder
[src]
fn default() -> ContentBuilder
[src]
Returns the "default value" for a type. Read more
impl Clone for ContentBuilder
[src]
fn clone(&self) -> ContentBuilder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more