pub struct ImageData {
pub content_type: String,
pub data: Vec<u8>,
}Expand description
Image data loaded from the package.
Fields§
§content_type: StringMIME content type (e.g., “image/png”, “image/jpeg”).
data: Vec<u8>Raw image bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageData
impl RefUnwindSafe for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnsafeUnpin for ImageData
impl UnwindSafe for ImageData
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