pub enum InputKind {
Show 30 variants
Pdf,
Doc,
Docx,
Ppt,
Pptx,
Html,
Asciidoc,
Markdown,
Csv,
Xlsx,
Xls,
Odt,
Ods,
Odp,
Epub,
Email,
Image,
XmlUspto,
XmlJats,
XmlXbrl,
XmlDoclang,
MetsGbs,
JsonDocling,
Dclx,
Audio,
Video,
Vtt,
Boxnote,
Latex,
Text,
}Variants§
Doc
Docx
Ppt
Pptx
Html
Asciidoc
Markdown
Csv
Xlsx
Xls
Odt
Ods
Odp
Epub
Image
XmlUspto
XmlJats
XmlXbrl
XmlDoclang
MetsGbs
JsonDocling
Dclx
Audio
Video
Vtt
Boxnote
Latex
Text
Implementations§
Source§impl InputKind
impl InputKind
pub fn from_path(path: &Path) -> Option<Self>
pub fn from_filename_and_media_type( filename: &str, media_type: Option<&str>, ) -> Option<Self>
pub fn requires_explicit_override( filename: &str, media_type: Option<&str>, ) -> bool
pub fn media_type(self) -> &'static str
pub fn canonical_media_type( self, filename: &str, media_type: Option<&str>, ) -> &'static str
pub fn default_extension(self) -> &'static str
pub fn default_extension_for_media_type( self, media_type: Option<&str>, ) -> &'static str
pub fn reading_label(self) -> &'static str
pub fn from_formats_value(self) -> &'static str
pub fn uses_generic_convert_options(self) -> bool
pub fn supports_vlm(self) -> bool
Trait Implementations§
impl Copy for InputKind
Source§impl<'de> Deserialize<'de> for InputKind
impl<'de> Deserialize<'de> for InputKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InputKind
impl StructuralPartialEq for InputKind
Auto Trait Implementations§
impl Freeze for InputKind
impl RefUnwindSafe for InputKind
impl Send for InputKind
impl Sync for InputKind
impl Unpin for InputKind
impl UnsafeUnpin for InputKind
impl UnwindSafe for InputKind
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.