pub struct ImageBuilder { /* private fields */ }Expand description
Builder for Image.
Implementations§
Source§impl ImageBuilder
impl ImageBuilder
Sourcepub fn alt<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn alt<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies an alternate text for an image
Sourcepub fn cross_origin(&mut self, value: CrossOrigin) -> &mut Self
pub fn cross_origin(&mut self, value: CrossOrigin) -> &mut Self
Allow images from third-party sites that allow cross-origin access to be used with canvas
Sourcepub fn ismap(&mut self, value: bool) -> &mut Self
pub fn ismap(&mut self, value: bool) -> &mut Self
Specifies an image as a server-side image map
Sourcepub fn loading(&mut self, value: Loading) -> &mut Self
pub fn loading(&mut self, value: Loading) -> &mut Self
Specifies whether a browser should load an image immediately or to defer loading of images until some conditions are met
Sourcepub fn referrer_policy(&mut self, value: ReferrerPolicy) -> &mut Self
pub fn referrer_policy(&mut self, value: ReferrerPolicy) -> &mut Self
Specifies a URL to a detailed description of an image Specifies which referrer information to use when fetching an image
Sourcepub fn src<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn src<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Specifies image sizes for different page layouts Specifies the path to the image
Trait Implementations§
Source§impl Clone for ImageBuilder
impl Clone for ImageBuilder
Source§fn clone(&self) -> ImageBuilder
fn clone(&self) -> ImageBuilder
Returns a duplicate 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