pub enum ExtractionMethod {
PdfText,
ImageOcr,
Unsupported,
}Expand description
Which extraction backend applies to a given Content-Type.
Variants§
PdfText
application/pdf — try embedded text first, OCR fallback for scans.
ImageOcr
image/{png,jpeg,webp,tiff,bmp,gif} — OCR via tesseract.
Unsupported
Anything else — caller should skip extraction.
Trait Implementations§
Source§impl Clone for ExtractionMethod
impl Clone for ExtractionMethod
Source§fn clone(&self) -> ExtractionMethod
fn clone(&self) -> ExtractionMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExtractionMethod
impl Debug for ExtractionMethod
Source§impl PartialEq for ExtractionMethod
impl PartialEq for ExtractionMethod
Source§fn eq(&self, other: &ExtractionMethod) -> bool
fn eq(&self, other: &ExtractionMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ExtractionMethod
impl Eq for ExtractionMethod
impl StructuralPartialEq for ExtractionMethod
Auto Trait Implementations§
impl Freeze for ExtractionMethod
impl RefUnwindSafe for ExtractionMethod
impl Send for ExtractionMethod
impl Sync for ExtractionMethod
impl Unpin for ExtractionMethod
impl UnsafeUnpin for ExtractionMethod
impl UnwindSafe for ExtractionMethod
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.