#[non_exhaustive]pub struct Image {
pub url: Url,
pub title: Option<String>,
pub link: Option<String>,
pub width: Option<u32>,
pub height: Option<u32>,
pub description: Option<String>,
}Expand description
Image metadata
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: UrlImage URL
title: Option<String>Image title
link: Option<String>Link associated with the image
width: Option<u32>Image width in pixels
height: Option<u32>Image height in pixels
description: Option<String>Image description
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Image
impl Freeze for Image
impl Move for Image
impl RefUnwindSafe for Image
impl Send for Imagewhere
RawVecInner: Send,
impl Sync for Imagewhere
RawVecInner: Sync,
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Imagewhere
RawVecInner: UnwindSafe,
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