pub struct OnPageResourceItemMeta {
pub alternative_text: Option<String>,
pub title: Option<String>,
pub original_width: Option<i32>,
pub original_height: Option<i32>,
pub width: Option<i32>,
pub height: Option<i32>,
}Expand description
Meta information about a resource, such as image attributes.
Fields§
§alternative_text: Option<String>Alt text of the image resource.
title: Option<String>Title attribute of the resource.
original_width: Option<i32>Original width of the image, in pixels.
original_height: Option<i32>Original height of the image, in pixels.
width: Option<i32>Rendered width of the image, in pixels.
height: Option<i32>Rendered height of the image, in pixels.
Trait Implementations§
Source§impl Clone for OnPageResourceItemMeta
impl Clone for OnPageResourceItemMeta
Source§impl Debug for OnPageResourceItemMeta
impl Debug for OnPageResourceItemMeta
Source§impl Default for OnPageResourceItemMeta
impl Default for OnPageResourceItemMeta
Source§impl<'de> Deserialize<'de> for OnPageResourceItemMeta
impl<'de> Deserialize<'de> for OnPageResourceItemMeta
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 OnPageResourceItemMeta
impl RefUnwindSafe for OnPageResourceItemMeta
impl Send for OnPageResourceItemMeta
impl Sync for OnPageResourceItemMeta
impl Unpin for OnPageResourceItemMeta
impl UnsafeUnpin for OnPageResourceItemMeta
impl UnwindSafe for OnPageResourceItemMeta
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