[][src]Struct google_documentai1_beta2::GoogleCloudDocumentaiV1beta2OutputConfig

pub struct GoogleCloudDocumentaiV1beta2OutputConfig {
    pub gcs_destination: Option<GoogleCloudDocumentaiV1beta2GcsDestination>,
    pub pages_per_shard: Option<i32>,
}

The desired output location and metadata.

This type is not used in any activity, and only used as part of another schema.

Fields

gcs_destination: Option<GoogleCloudDocumentaiV1beta2GcsDestination>

The Google Cloud Storage location to write the output to.

pages_per_shard: Option<i32>

The max number of pages to include into each output Document shard JSON on Google Cloud Storage.

The valid range is [1, 100]. If not specified, the default value is 20.

For example, for one pdf file with 100 pages, 100 parsed pages will be produced. If pages_per_shard = 20, then 5 Document shard JSON files each containing 20 parsed pages will be written under the prefix OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y are 1-indexed page numbers.

Example GCS outputs with 157 pages and pages_per_shard = 50:

pages-001-to-050.json pages-051-to-100.json pages-101-to-150.json pages-151-to-157.json

Trait Implementations

impl Clone for GoogleCloudDocumentaiV1beta2OutputConfig[src]

impl Debug for GoogleCloudDocumentaiV1beta2OutputConfig[src]

impl Default for GoogleCloudDocumentaiV1beta2OutputConfig[src]

impl<'de> Deserialize<'de> for GoogleCloudDocumentaiV1beta2OutputConfig[src]

impl Part for GoogleCloudDocumentaiV1beta2OutputConfig[src]

impl Serialize for GoogleCloudDocumentaiV1beta2OutputConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any