pub struct ImageBuilder { /* private fields */ }
Expand description
Builder for Image
.
Implementations§
Source§impl 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.
Sourcepub fn description<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
The text for the HTML title
attribute of the link formed around the image.
Trait Implementations§
Source§impl Clone for ImageBuilder
impl Clone for ImageBuilder
Source§fn clone(&self) -> ImageBuilder
fn clone(&self) -> ImageBuilder
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 moreAuto Trait Implementations§
impl Freeze for ImageBuilder
impl RefUnwindSafe for ImageBuilder
impl Send for ImageBuilder
impl Sync for ImageBuilder
impl Unpin for ImageBuilder
impl UnwindSafe for ImageBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more