pub struct DocumentParserConfig {
pub enabled: bool,
pub max_file_size_mb: u64,
pub ocr: Option<DocumentOcrConfig>,
pub cache: Option<DocumentCacheConfig>,
}Expand description
Default configuration for built-in document context extraction.
Fields§
§enabled: boolWhether the default document extraction stack is registered in the parser registry.
max_file_size_mb: u64Maximum file size accepted by the parser, in MiB.
ocr: Option<DocumentOcrConfig>Optional OCR / vision-model settings for image-heavy documents.
These settings control OCR fallback when context extraction reaches scanned or image-heavy inputs. Current parsers may not execute OCR for every format.
cache: Option<DocumentCacheConfig>Optional cache settings for parsed / normalized document context.
Implementations§
Source§impl DocumentParserConfig
impl DocumentParserConfig
pub fn normalized(&self) -> Self
Trait Implementations§
Source§impl Clone for DocumentParserConfig
impl Clone for DocumentParserConfig
Source§fn clone(&self) -> DocumentParserConfig
fn clone(&self) -> DocumentParserConfig
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 DocumentParserConfig
impl Debug for DocumentParserConfig
Source§impl Default for DocumentParserConfig
impl Default for DocumentParserConfig
Source§impl<'de> Deserialize<'de> for DocumentParserConfig
impl<'de> Deserialize<'de> for DocumentParserConfig
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 DocumentParserConfig
impl RefUnwindSafe for DocumentParserConfig
impl Send for DocumentParserConfig
impl Sync for DocumentParserConfig
impl Unpin for DocumentParserConfig
impl UnsafeUnpin for DocumentParserConfig
impl UnwindSafe for DocumentParserConfig
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