Struct rss::ImageBuilder
source · pub struct ImageBuilder { /* private fields */ }
Expand description
Builder for Image
.
Implementations
sourceimpl ImageBuilder
impl ImageBuilder
sourcepub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn title<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A description of the image. This is used in the HTML alt
attribute.
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 that the image links to.
sourcepub fn width<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn width<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The width of the image.
sourcepub fn height<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn height<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The height of the image.
Trait Implementations
sourceimpl Clone for ImageBuilder
impl Clone for ImageBuilder
sourcefn clone(&self) -> ImageBuilder
fn clone(&self) -> ImageBuilder
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 moresourceimpl Default for ImageBuilder
impl Default for ImageBuilder
sourcefn default() -> ImageBuilder
fn default() -> ImageBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ImageBuilder
impl Send for ImageBuilder
impl Sync for ImageBuilder
impl Unpin for ImageBuilder
impl UnwindSafe for ImageBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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