Struct google_vision1::api::TextAnnotation
source · pub struct TextAnnotation {
pub pages: Option<Vec<Page>>,
pub text: Option<String>,
}
Expand description
TextAnnotation contains a structured representation of OCR extracted text. The hierarchy of an OCR extracted text structure is like this: TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol Each structural component, starting from Page, may further have their own properties. Properties describe detected languages, breaks etc.. Please refer to the TextAnnotation.TextProperty message definition below for more detail.
This type is not used in any activity, and only used as part of another schema.
Fields§
§pages: Option<Vec<Page>>
List of pages detected by OCR.
text: Option<String>
UTF-8 text detected on the pages.
Trait Implementations§
source§impl Clone for TextAnnotation
impl Clone for TextAnnotation
source§fn clone(&self) -> TextAnnotation
fn clone(&self) -> TextAnnotation
Returns a copy of the value. Read more
1.0.0 · 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 TextAnnotation
impl Debug for TextAnnotation
source§impl Default for TextAnnotation
impl Default for TextAnnotation
source§fn default() -> TextAnnotation
fn default() -> TextAnnotation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TextAnnotation
impl<'de> Deserialize<'de> for TextAnnotation
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 Serialize for TextAnnotation
impl Serialize for TextAnnotation
impl Part for TextAnnotation
Auto Trait Implementations§
impl RefUnwindSafe for TextAnnotation
impl Send for TextAnnotation
impl Sync for TextAnnotation
impl Unpin for TextAnnotation
impl UnwindSafe for TextAnnotation
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