pub struct Extractor;Expand description
Stateless document extractor.
Implementations§
Source§impl Extractor
impl Extractor
Sourcepub async fn extract(
path: &Path,
_opts: ExtractionOptions,
) -> Result<ExtractedDocument, ExtractError>
pub async fn extract( path: &Path, _opts: ExtractionOptions, ) -> Result<ExtractedDocument, ExtractError>
Extract text (and optionally metadata) from a file.
Sourcepub fn extract_bytes(
data: &[u8],
format: DetectedFormat,
_opts: ExtractionOptions,
) -> Result<ExtractedDocument, ExtractError>
pub fn extract_bytes( data: &[u8], format: DetectedFormat, _opts: ExtractionOptions, ) -> Result<ExtractedDocument, ExtractError>
Extract from an in-memory buffer with an explicit format hint.
Auto Trait Implementations§
impl Freeze for Extractor
impl RefUnwindSafe for Extractor
impl Send for Extractor
impl Sync for Extractor
impl Unpin for Extractor
impl UnsafeUnpin for Extractor
impl UnwindSafe for Extractor
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