pub struct ConversionOptions {
pub extract_images: bool,
pub max_total_image_bytes: usize,
pub strict: bool,
pub max_input_bytes: usize,
pub max_uncompressed_zip_bytes: usize,
pub image_describer: Option<Arc<dyn ImageDescriber>>,
}Expand description
Options controlling conversion behavior.
Fields§
§extract_images: boolExtract embedded images into ConversionResult.images.
max_total_image_bytes: usizeHard cap for total extracted image bytes per document.
strict: boolIf true, return an error on recoverable parse failures instead of warnings.
max_input_bytes: usizeMaximum input file size in bytes. Files larger than this are rejected.
max_uncompressed_zip_bytes: usizeMaximum total uncompressed size of entries in a ZIP-based document.
image_describer: Option<Arc<dyn ImageDescriber>>Optional image describer for LLM-based alt text generation.
Trait Implementations§
Source§impl Clone for ConversionOptions
impl Clone for ConversionOptions
Source§fn clone(&self) -> ConversionOptions
fn clone(&self) -> ConversionOptions
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 moreSource§impl Debug for ConversionOptions
impl Debug for ConversionOptions
Auto Trait Implementations§
impl Freeze for ConversionOptions
impl !RefUnwindSafe for ConversionOptions
impl Send for ConversionOptions
impl Sync for ConversionOptions
impl Unpin for ConversionOptions
impl UnsafeUnpin for ConversionOptions
impl !UnwindSafe for ConversionOptions
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