#[non_exhaustive]pub enum TextOrigin {
Ocr,
EmbeddedText,
Transcript,
Hybrid,
}Expand description
Provenance of text extracted from a document or transcript source.
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.
Ocr
Text came from OCR over pixels.
EmbeddedText
Text came from an embedded text layer.
Transcript
Text came from an audio/video transcript.
Hybrid
Text came from multiple extraction paths.
Trait Implementations§
Source§impl Clone for TextOrigin
impl Clone for TextOrigin
Source§fn clone(&self) -> TextOrigin
fn clone(&self) -> TextOrigin
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 moreSource§impl Debug for TextOrigin
impl Debug for TextOrigin
Source§impl<'de> Deserialize<'de> for TextOrigin
impl<'de> Deserialize<'de> for TextOrigin
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
Source§impl PartialEq for TextOrigin
impl PartialEq for TextOrigin
Source§fn eq(&self, other: &TextOrigin) -> bool
fn eq(&self, other: &TextOrigin) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextOrigin
impl Serialize for TextOrigin
impl Copy for TextOrigin
impl Eq for TextOrigin
impl StructuralPartialEq for TextOrigin
Auto Trait Implementations§
impl Freeze for TextOrigin
impl RefUnwindSafe for TextOrigin
impl Send for TextOrigin
impl Sync for TextOrigin
impl Unpin for TextOrigin
impl UnsafeUnpin for TextOrigin
impl UnwindSafe for TextOrigin
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