pub enum InputFormat {
Show 17 variants
Text,
Pdf,
Excel,
LegacyExcel,
Word,
LegacyWord,
Presentation,
LegacyPresentation,
OpenDocument,
Archive,
Html,
Image,
Email,
Json,
Csv,
Xml,
LegacyEmail,
}Expand description
File formats Dongler can identify from a path.
File formats are modelled explicitly so loaders and engines can be added
without changing the public format names returned by detect_format.
Variants§
Text
Excel
LegacyExcel
Word
LegacyWord
Presentation
LegacyPresentation
OpenDocument
Archive
Html
Image
Json
Csv
Xml
LegacyEmail
Implementations§
Source§impl InputFormat
impl InputFormat
pub fn detect_path(path: impl AsRef<Path>) -> Result<Self>
pub fn as_str(self) -> &'static str
pub fn extraction_status(self) -> ExtractionStatus
Trait Implementations§
Source§impl Clone for InputFormat
impl Clone for InputFormat
Source§fn clone(&self) -> InputFormat
fn clone(&self) -> InputFormat
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 moreimpl Copy for InputFormat
Source§impl Debug for InputFormat
impl Debug for InputFormat
Source§impl Display for InputFormat
impl Display for InputFormat
impl Eq for InputFormat
Source§impl PartialEq for InputFormat
impl PartialEq for InputFormat
Source§fn eq(&self, other: &InputFormat) -> bool
fn eq(&self, other: &InputFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputFormat
Auto Trait Implementations§
impl Freeze for InputFormat
impl RefUnwindSafe for InputFormat
impl Send for InputFormat
impl Sync for InputFormat
impl Unpin for InputFormat
impl UnsafeUnpin for InputFormat
impl UnwindSafe for InputFormat
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> 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