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
Source§fn clone(&self) -> ExtractedImage
fn clone(&self) -> ExtractedImage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExtractedImage
impl RefUnwindSafe for ExtractedImage
impl Send for ExtractedImage
impl Sync for ExtractedImage
impl Unpin 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