pub struct ImageOptions {
pub width: Option<u16>,
pub height: Option<u16>,
pub preserve_aspect: bool,
pub alt_text: Option<String>,
pub title: Option<String>,
}Expand description
Image options.
Fields§
§width: Option<u16>Width in cells (None = auto).
height: Option<u16>Height in cells (None = auto).
preserve_aspect: boolPreserve aspect ratio.
alt_text: Option<String>Alt text for fallback.
title: Option<String>Title for the image.
Trait Implementations§
Source§impl Clone for ImageOptions
impl Clone for ImageOptions
Source§impl Debug for ImageOptions
impl Debug for ImageOptions
Auto Trait Implementations§
impl Freeze for ImageOptions
impl RefUnwindSafe for ImageOptions
impl Send for ImageOptions
impl Sync for ImageOptions
impl Unpin for ImageOptions
impl UnsafeUnpin for ImageOptions
impl UnwindSafe for ImageOptions
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