pub struct ImageBlock {
pub id: Option<String>,
pub src: String,
pub alt: String,
pub title: Option<String>,
pub width: Option<u32>,
pub height: Option<u32>,
}Expand description
Image block content.
Fields§
§id: Option<String>Optional unique identifier.
src: StringImage source (path or URL).
alt: StringAlternative text for accessibility.
title: Option<String>Image title/caption.
width: Option<u32>Intrinsic width in pixels.
height: Option<u32>Intrinsic height in pixels.
Trait Implementations§
Source§impl Clone for ImageBlock
impl Clone for ImageBlock
Source§fn clone(&self) -> ImageBlock
fn clone(&self) -> ImageBlock
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 ImageBlock
impl Debug for ImageBlock
Source§impl<'de> Deserialize<'de> for ImageBlock
impl<'de> Deserialize<'de> for ImageBlock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ImageBlock
impl PartialEq for ImageBlock
Source§impl Serialize for ImageBlock
impl Serialize for ImageBlock
impl Eq for ImageBlock
impl StructuralPartialEq for ImageBlock
Auto Trait Implementations§
impl Freeze for ImageBlock
impl RefUnwindSafe for ImageBlock
impl Send for ImageBlock
impl Sync for ImageBlock
impl Unpin for ImageBlock
impl UnsafeUnpin for ImageBlock
impl UnwindSafe for ImageBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.