pub struct EuvImageProps {
pub src: &'static str,
pub alt: &'static str,
pub placeholder: &'static str,
pub width: Option<u32>,
pub height: Option<u32>,
}Expand description
Props for the euv_image component.
Defines the strongly-typed interface for a picture: where it comes from, what it says, the box it should occupy, and the text shown while it loads or if it fails.
Fields§
§src: &'static strThe image source URL.
alt: &'static strThe alternative text, read by screen readers.
placeholder: &'static strThe text shown while the picture loads and when it fails.
An empty string renders the picture with no placeholder.
width: Option<u32>The explicit width in pixels, when the caller wants one.
height: Option<u32>The explicit height in pixels, when the caller wants one.
Trait Implementations§
Source§impl Clone for EuvImageProps
impl Clone for EuvImageProps
Source§impl Debug for EuvImageProps
impl Debug for EuvImageProps
Auto Trait Implementations§
impl Freeze for EuvImageProps
impl RefUnwindSafe for EuvImageProps
impl Send for EuvImageProps
impl Sync for EuvImageProps
impl Unpin for EuvImageProps
impl UnsafeUnpin for EuvImageProps
impl UnwindSafe for EuvImageProps
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