Struct rss::ImageBuilder
[−]
[src]
pub struct ImageBuilder { /* fields omitted */ }
Builder for Image
.
Methods
impl ImageBuilder
[src]
fn url<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The URL of the image.
fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A description of the image. This is used in the HTML alt
attribute.
fn link<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The URL that the image links to.
fn width<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The width of the image.
fn height<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The height of the image.
fn description<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE
) -> &mut Self
&mut self,
value: VALUE
) -> &mut Self
The text for the HTML title
attribute of the link formed around the image.
fn build(&self) -> Result<Image, String>
Trait Implementations
impl Default for ImageBuilder
[src]
fn default() -> ImageBuilder
Returns the "default value" for a type. Read more
impl Clone for ImageBuilder
[src]
fn clone(&self) -> ImageBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more