Struct google_api_proto::google::cloud::documentai::v1::document::Page
source · pub struct Page {Show 17 fields
pub page_number: i32,
pub image: Option<Image>,
pub transforms: Vec<Matrix>,
pub dimension: Option<Dimension>,
pub layout: Option<Layout>,
pub detected_languages: Vec<DetectedLanguage>,
pub blocks: Vec<Block>,
pub paragraphs: Vec<Paragraph>,
pub lines: Vec<Line>,
pub tokens: Vec<Token>,
pub visual_elements: Vec<VisualElement>,
pub tables: Vec<Table>,
pub form_fields: Vec<FormField>,
pub symbols: Vec<Symbol>,
pub detected_barcodes: Vec<DetectedBarcode>,
pub image_quality_scores: Option<ImageQualityScores>,
pub provenance: Option<Provenance>,
}
Expand description
A page in a [Document][google.cloud.documentai.v1.Document].
Fields§
§page_number: i32
1-based index for current [Page][google.cloud.documentai.v1.Document.Page] in a parent [Document][google.cloud.documentai.v1.Document]. Useful when a page is taken out of a [Document][google.cloud.documentai.v1.Document] for individual processing.
image: Option<Image>
Rendered image for this page. This image is preprocessed to remove any skew, rotation, and distortions such that the annotation bounding boxes can be upright and axis-aligned.
transforms: Vec<Matrix>
Transformation matrices that were applied to the original document image to produce [Page.image][google.cloud.documentai.v1.Document.Page.image].
dimension: Option<Dimension>
Physical dimension of the page.
layout: Option<Layout>
[Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page.
detected_languages: Vec<DetectedLanguage>
A list of detected languages together with confidence.
blocks: Vec<Block>
A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.
paragraphs: Vec<Paragraph>
A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph.
lines: Vec<Line>
A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line.
tokens: Vec<Token>
A list of visually detected tokens on the page.
visual_elements: Vec<VisualElement>
A list of detected non-text visual elements e.g. checkbox, signature etc. on the page.
tables: Vec<Table>
A list of visually detected tables on the page.
form_fields: Vec<FormField>
A list of visually detected form fields on the page.
symbols: Vec<Symbol>
A list of visually detected symbols on the page.
detected_barcodes: Vec<DetectedBarcode>
A list of detected barcodes.
image_quality_scores: Option<ImageQualityScores>
Image quality scores.
provenance: Option<Provenance>
The history of this page.
Trait Implementations§
source§impl Message for Page
impl Message for Page
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Page
impl PartialEq for Page
impl StructuralPartialEq for Page
Auto Trait Implementations§
impl !Freeze for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnwindSafe for Page
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request