pub enum UploadKind {
Pdf,
Html,
Office(Format),
Image(&'static str),
}Variants§
Html
Office(Format)
Word、Excel、PowerPoint、EPUB、CSV、邮件、压缩包、文本类(见 pagesift-office)。
Image(&'static str)
图片(要服务端打开 OCR)。参数是按内容认出的 MIME 类型。
Implementations§
Trait Implementations§
Source§impl Clone for UploadKind
impl Clone for UploadKind
impl Copy for UploadKind
Source§impl Debug for UploadKind
impl Debug for UploadKind
impl Eq for UploadKind
Source§impl PartialEq for UploadKind
impl PartialEq for UploadKind
impl StructuralPartialEq for UploadKind
Auto Trait Implementations§
impl Forget for UploadKind
impl Freeze for UploadKind
impl RefUnwindSafe for UploadKind
impl Send for UploadKind
impl Sync for UploadKind
impl Unpin for UploadKind
impl UnsafeUnpin for UploadKind
impl UnwindSafe for UploadKind
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.