#[non_exhaustive]pub struct Image {
pub content: Bytes,
pub mime_type: String,
pub width: i32,
pub height: i32,
/* private fields */
}Expand description
Rendered image contents for this page.
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.content: BytesRaw byte content of the image.
mime_type: StringEncoding media type (MIME type) for the image.
width: i32Width of the image in pixels.
height: i32Height of the image in pixels.
Implementations§
Source§impl Image
impl Image
Trait Implementations§
impl StructuralPartialEq for Image
Auto Trait Implementations§
impl !Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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