#[non_exhaustive]pub enum DeliveredAs {
Document,
Text,
Image,
}Expand description
How a file reached the model.
This is what happened, where Delivery is what was asked for, and it has
a way that cannot be asked for: an image only ever travels as one.
It is #[non_exhaustive]: a match on it needs a _ arm, so a way added
later does not break an action that was already written.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Document
The document itself, which the model reads with its layout, tables and figures.
Text
The text read out of the document, with any page that had none read from its image.
Image
An image.
Trait Implementations§
Source§impl Clone for DeliveredAs
impl Clone for DeliveredAs
impl Copy for DeliveredAs
Source§impl Debug for DeliveredAs
impl Debug for DeliveredAs
impl Eq for DeliveredAs
Source§impl PartialEq for DeliveredAs
impl PartialEq for DeliveredAs
impl StructuralPartialEq for DeliveredAs
Auto Trait Implementations§
impl Freeze for DeliveredAs
impl RefUnwindSafe for DeliveredAs
impl Send for DeliveredAs
impl Sync for DeliveredAs
impl Unpin for DeliveredAs
impl UnsafeUnpin for DeliveredAs
impl UnwindSafe for DeliveredAs
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