pub struct DefaultParserOcrConfig {
pub enabled: bool,
pub model: Option<String>,
pub prompt: Option<String>,
pub max_images: usize,
pub dpi: u32,
}Expand description
OCR / vision-model configuration for the built-in DefaultParser.
Fields§
§enabled: boolWhether OCR fallback is enabled for image-heavy documents.
model: Option<String>Vision-capable model identifier, for example openai/gpt-4.1-mini.
prompt: Option<String>Optional custom OCR prompt / extraction instruction.
max_images: usizeMaximum number of rendered images/pages to send for OCR fallback.
dpi: u32Render DPI when rasterizing pages for OCR fallback.
Trait Implementations§
Source§impl Clone for DefaultParserOcrConfig
impl Clone for DefaultParserOcrConfig
Source§fn clone(&self) -> DefaultParserOcrConfig
fn clone(&self) -> DefaultParserOcrConfig
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 DefaultParserOcrConfig
impl Debug for DefaultParserOcrConfig
Source§impl Default for DefaultParserOcrConfig
impl Default for DefaultParserOcrConfig
Source§impl<'de> Deserialize<'de> for DefaultParserOcrConfig
impl<'de> Deserialize<'de> for DefaultParserOcrConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DefaultParserOcrConfig
impl RefUnwindSafe for DefaultParserOcrConfig
impl Send for DefaultParserOcrConfig
impl Sync for DefaultParserOcrConfig
impl Unpin for DefaultParserOcrConfig
impl UnsafeUnpin for DefaultParserOcrConfig
impl UnwindSafe for DefaultParserOcrConfig
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