pub enum Format {
Pdf,
Docx,
Spreadsheet,
Epub,
Html,
}Expand description
The document formats dbmd extract understands, one per adapter. Detected
from the file extension by Format::from_path.
Variants§
Portable Document Format (.pdf) — text layer via pdf-extract.
Docx
Office Open XML WordprocessingML (.docx) — w:t runs via quick-xml.
Spreadsheet
A spreadsheet (.xlsx/.xlsm/.xlsb/.ods) — cells via calamine.
Epub
EPUB e-book (.epub) — spine XHTML via zip + quick-xml + html2text.
Html
HTML (.html/.htm/.xhtml) — plain text via html2text.
Implementations§
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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.