pub struct StyledImage {
pub src: String,
pub alt: String,
pub width_px: Option<u16>,
pub height_px: Option<u16>,
pub in_figure: bool,
}Expand description
Styled inline image payload.
Fields§
§src: StringOPF-relative image href.
alt: StringOptional caption/alt text.
width_px: Option<u16>Optional intrinsic width hint in CSS px.
height_px: Option<u16>Optional intrinsic height hint in CSS px.
in_figure: boolWhether image appears inside a <figure> container.
Trait Implementations§
Source§impl Clone for StyledImage
impl Clone for StyledImage
Source§fn clone(&self) -> StyledImage
fn clone(&self) -> StyledImage
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 moreSource§impl Debug for StyledImage
impl Debug for StyledImage
Source§impl PartialEq for StyledImage
impl PartialEq for StyledImage
impl Eq for StyledImage
impl StructuralPartialEq for StyledImage
Auto Trait Implementations§
impl Freeze for StyledImage
impl RefUnwindSafe for StyledImage
impl Send for StyledImage
impl Sync for StyledImage
impl Unpin for StyledImage
impl UnsafeUnpin for StyledImage
impl UnwindSafe for StyledImage
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