Struct google_api_proto::google::cloud::documentai::v1beta3::ProcessOptions
source · pub struct ProcessOptions {
pub ocr_config: Option<OcrConfig>,
pub layout_config: Option<LayoutConfig>,
pub schema_override: Option<DocumentSchema>,
pub page_range: Option<PageRange>,
}
Expand description
Options for Process API
Fields§
§ocr_config: Option<OcrConfig>
Only applicable to OCR_PROCESSOR
and FORM_PARSER_PROCESSOR
.
Returns error if set on other processor types.
layout_config: Option<LayoutConfig>
Optional. Only applicable to LAYOUT_PARSER_PROCESSOR
.
Returns error if set on other processor types.
schema_override: Option<DocumentSchema>
Optional. Override the schema of the [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]. Will return an Invalid Argument error if this field is set when the underlying [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion] doesn’t support schema override.
page_range: Option<PageRange>
A subset of pages to process. If not specified, all pages are processed. If a page range is set, only the given pages are extracted and processed from the document. In the output document, [Document.Page.page_number][google.cloud.documentai.v1beta3.Document.Page.page_number] refers to the page number in the original document. This configuration only applies to sync requests.
Trait Implementations§
source§impl Clone for ProcessOptions
impl Clone for ProcessOptions
source§fn clone(&self) -> ProcessOptions
fn clone(&self) -> ProcessOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProcessOptions
impl Debug for ProcessOptions
source§impl Default for ProcessOptions
impl Default for ProcessOptions
source§impl Message for ProcessOptions
impl Message for ProcessOptions
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 ProcessOptions
impl PartialEq for ProcessOptions
source§fn eq(&self, other: &ProcessOptions) -> bool
fn eq(&self, other: &ProcessOptions) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProcessOptions
Auto Trait Implementations§
impl Freeze for ProcessOptions
impl RefUnwindSafe for ProcessOptions
impl Send for ProcessOptions
impl Sync for ProcessOptions
impl Unpin for ProcessOptions
impl UnwindSafe for ProcessOptions
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