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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more