pub struct GoogleCloudDocumentaiV1ProcessOptions {
pub from_end: Option<i32>,
pub from_start: Option<i32>,
pub individual_page_selector: Option<GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector>,
pub layout_config: Option<GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig>,
pub ocr_config: Option<GoogleCloudDocumentaiV1OcrConfig>,
pub schema_override: Option<GoogleCloudDocumentaiV1DocumentSchema>,
}Expand description
Options for Process API
This type is not used in any activity, and only used as part of another schema.
Fields§
§from_end: Option<i32>Only process certain pages from the end, same as above.
from_start: Option<i32>Only process certain pages from the start. Process all if the document has fewer pages.
individual_page_selector: Option<GoogleCloudDocumentaiV1ProcessOptionsIndividualPageSelector>Which pages to process (1-indexed).
layout_config: Option<GoogleCloudDocumentaiV1ProcessOptionsLayoutConfig>Optional. Only applicable to LAYOUT_PARSER_PROCESSOR. Returns error if set on other processor types.
ocr_config: Option<GoogleCloudDocumentaiV1OcrConfig>Only applicable to OCR_PROCESSOR and FORM_PARSER_PROCESSOR. Returns error if set on other processor types.
schema_override: Option<GoogleCloudDocumentaiV1DocumentSchema>Optional. Override the schema of the ProcessorVersion. Will return an Invalid Argument error if this field is set when the underlying ProcessorVersion doesn’t support schema override.
Trait Implementations§
Source§impl Clone for GoogleCloudDocumentaiV1ProcessOptions
impl Clone for GoogleCloudDocumentaiV1ProcessOptions
Source§fn clone(&self) -> GoogleCloudDocumentaiV1ProcessOptions
fn clone(&self) -> GoogleCloudDocumentaiV1ProcessOptions
Returns a duplicate 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 Default for GoogleCloudDocumentaiV1ProcessOptions
impl Default for GoogleCloudDocumentaiV1ProcessOptions
Source§fn default() -> GoogleCloudDocumentaiV1ProcessOptions
fn default() -> GoogleCloudDocumentaiV1ProcessOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1ProcessOptions
impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1ProcessOptions
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
impl Part for GoogleCloudDocumentaiV1ProcessOptions
Auto Trait Implementations§
impl Freeze for GoogleCloudDocumentaiV1ProcessOptions
impl RefUnwindSafe for GoogleCloudDocumentaiV1ProcessOptions
impl Send for GoogleCloudDocumentaiV1ProcessOptions
impl Sync for GoogleCloudDocumentaiV1ProcessOptions
impl Unpin for GoogleCloudDocumentaiV1ProcessOptions
impl UnwindSafe for GoogleCloudDocumentaiV1ProcessOptions
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