pub struct PictureImage {
pub mimetype: String,
pub width: u32,
pub height: u32,
pub data: Vec<u8>,
}Expand description
An extracted picture’s raw encoded bytes plus its mimetype and pixel size —
the fleischwolf analogue of docling-core’s ImageRef.
Fields§
§mimetype: Stringe.g. image/png, image/jpeg.
width: u32§height: u32§data: Vec<u8>The image file bytes, exactly as embedded (PNG/JPEG/…).
Implementations§
Trait Implementations§
Source§impl Clone for PictureImage
impl Clone for PictureImage
Source§fn clone(&self) -> PictureImage
fn clone(&self) -> PictureImage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PictureImage
impl Debug for PictureImage
Source§impl PartialEq for PictureImage
impl PartialEq for PictureImage
Source§fn eq(&self, other: &PictureImage) -> bool
fn eq(&self, other: &PictureImage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PictureImage
Auto Trait Implementations§
impl Freeze for PictureImage
impl RefUnwindSafe for PictureImage
impl Send for PictureImage
impl Sync for PictureImage
impl Unpin for PictureImage
impl UnsafeUnpin for PictureImage
impl UnwindSafe for PictureImage
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