pub struct DefaultParser { /* private fields */ }Implementations§
Source§impl DefaultParser
impl DefaultParser
pub fn new() -> Self
pub fn with_config(config: DefaultParserConfig) -> Self
pub fn with_config_and_ocr( config: DefaultParserConfig, ocr_provider: Arc<dyn DefaultParserOcrProvider>, ) -> Self
pub fn config(&self) -> &DefaultParserConfig
pub fn ocr_provider(&self) -> Option<&Arc<dyn DefaultParserOcrProvider>>
Trait Implementations§
Source§impl Default for DefaultParser
impl Default for DefaultParser
Source§fn default() -> DefaultParser
fn default() -> DefaultParser
Returns the “default value” for a type. Read more
Source§impl DocumentParser for DefaultParser
impl DocumentParser for DefaultParser
Source§fn supported_extensions(&self) -> &[&str]
fn supported_extensions(&self) -> &[&str]
File extensions this parser handles (case-insensitive, no leading dot). Read more
Source§fn parse(&self, path: &Path) -> Result<String>
fn parse(&self, path: &Path) -> Result<String>
Extract plain-text content from
path. Read moreSource§fn parse_document(&self, path: &Path) -> Result<ParsedDocument>
fn parse_document(&self, path: &Path) -> Result<ParsedDocument>
Extract a structured document from
path. Read moreSource§fn max_file_size(&self) -> u64
fn max_file_size(&self) -> u64
Maximum file size (bytes) this parser accepts. Files larger than this
limit are silently skipped. Default: 10 MiB.
Auto Trait Implementations§
impl Freeze for DefaultParser
impl !RefUnwindSafe for DefaultParser
impl Send for DefaultParser
impl Sync for DefaultParser
impl Unpin for DefaultParser
impl UnsafeUnpin for DefaultParser
impl !UnwindSafe for DefaultParser
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