pub struct ImageInfo {
pub url: String,
pub alt: Option<String>,
pub width: Option<u32>,
pub height: Option<u32>,
pub source: ImageSource,
}Expand description
Information about an image found on a page.
Fields§
§url: StringThe image URL.
alt: Option<String>The alt text, if present.
width: Option<u32>The width attribute, if present and parseable.
height: Option<u32>The height attribute, if present and parseable.
source: ImageSourceThe source of the image reference.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ImageInfo
impl<'de> Deserialize<'de> for ImageInfo
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
Auto Trait Implementations§
impl Freeze for ImageInfo
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnsafeUnpin for ImageInfo
impl UnwindSafe for ImageInfo
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