pub struct ExtractedImage {
pub data: Vec<u8>,
pub mime_type: String,
pub caption: Option<String>,
pub page: Option<u32>,
}Expand description
An image extracted from a document.
Fields§
§data: Vec<u8>Raw image data
mime_type: StringMIME type
caption: Option<String>Caption if available
page: Option<u32>Page number (for PDFs)
Trait Implementations§
Source§impl Clone for ExtractedImage
impl Clone for ExtractedImage
Auto Trait Implementations§
impl Freeze for ExtractedImage
impl RefUnwindSafe for ExtractedImage
impl Send for ExtractedImage
impl Sync for ExtractedImage
impl Unpin for ExtractedImage
impl UnsafeUnpin for ExtractedImage
impl UnwindSafe for ExtractedImage
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