#[non_exhaustive]pub struct OutputConfig {
pub gcs_destination: Option<GcsDestination>,
pub batch_size: i32,
/* private fields */
}Expand description
The desired output location and metadata.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.gcs_destination: Option<GcsDestination>The Google Cloud Storage location to write the output(s) to.
batch_size: i32The max number of response protos to put into each output JSON file 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 response protos will
be generated. If batch_size = 20, then 5 json files each
containing 20 response protos will be written under the prefix
gcs_destination.uri.
Currently, batch_size only applies to GcsDestination, with potential future support for other output configurations.
Implementations§
Source§impl OutputConfig
impl OutputConfig
pub fn new() -> Self
Sourcepub fn set_gcs_destination<T>(self, v: T) -> Selfwhere
T: Into<GcsDestination>,
pub fn set_gcs_destination<T>(self, v: T) -> Selfwhere
T: Into<GcsDestination>,
Sets the value of gcs_destination.
Sourcepub fn set_or_clear_gcs_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<GcsDestination>,
pub fn set_or_clear_gcs_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<GcsDestination>,
Sets or clears the value of gcs_destination.
Sourcepub fn set_batch_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_batch_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of batch_size.
Trait Implementations§
Source§impl Clone for OutputConfig
impl Clone for OutputConfig
Source§fn clone(&self) -> OutputConfig
fn clone(&self) -> OutputConfig
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 Debug for OutputConfig
impl Debug for OutputConfig
Source§impl Default for OutputConfig
impl Default for OutputConfig
Source§fn default() -> OutputConfig
fn default() -> OutputConfig
Returns the “default value” for a type. Read more
Source§impl Message for OutputConfig
impl Message for OutputConfig
Source§impl PartialEq for OutputConfig
impl PartialEq for OutputConfig
impl StructuralPartialEq for OutputConfig
Auto Trait Implementations§
impl Freeze for OutputConfig
impl RefUnwindSafe for OutputConfig
impl Send for OutputConfig
impl Sync for OutputConfig
impl Unpin for OutputConfig
impl UnwindSafe for OutputConfig
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