pub struct DefaultParserConfig {
pub enabled: bool,
pub max_file_size_mb: u64,
pub ocr: Option<DefaultParserOcrConfig>,
}Expand description
Default configuration for the built-in DefaultParser.
Fields§
§enabled: boolWhether the default rich parser is registered in the parser registry.
max_file_size_mb: u64Maximum file size accepted by the parser, in MiB.
ocr: Option<DefaultParserOcrConfig>Optional OCR / vision-model settings for image-heavy documents.
These settings are plumbed through the runtime now so OCR support can be enabled without another config migration later. Current parsers may not yet execute OCR for every format.
Trait Implementations§
Source§impl Clone for DefaultParserConfig
impl Clone for DefaultParserConfig
Source§fn clone(&self) -> DefaultParserConfig
fn clone(&self) -> DefaultParserConfig
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 DefaultParserConfig
impl Debug for DefaultParserConfig
Source§impl Default for DefaultParserConfig
impl Default for DefaultParserConfig
Source§impl<'de> Deserialize<'de> for DefaultParserConfig
impl<'de> Deserialize<'de> for DefaultParserConfig
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 DefaultParserConfig
impl RefUnwindSafe for DefaultParserConfig
impl Send for DefaultParserConfig
impl Sync for DefaultParserConfig
impl Unpin for DefaultParserConfig
impl UnsafeUnpin for DefaultParserConfig
impl UnwindSafe for DefaultParserConfig
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