pub struct ImageInfo {
pub h: u32,
pub mimetype: String,
pub size: u32,
pub w: u32,
}
Expand description
Information about an image.
Fields§
§h: u32
The height of the image in pixels.
mimetype: String
MIME type
size: u32
Size, in bytes
w: u32
The width of the image in pixels.
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 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