#[non_exhaustive]pub struct GcsOutputConfig {
pub gcs_uri: String,
pub field_mask: Option<FieldMask>,
pub sharding_config: Option<ShardingConfig>,
/* private fields */
}Expand description
The configuration used when outputting documents.
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_uri: StringThe Cloud Storage uri (a directory) of the output.
field_mask: Option<FieldMask>Specifies which fields to include in the output documents.
Only supports top level document and pages field so it must be in the
form of {document_field_name} or pages.{page_field_name}.
sharding_config: Option<ShardingConfig>Specifies the sharding config for the output document.
Implementations§
Source§impl GcsOutputConfig
impl GcsOutputConfig
pub fn new() -> Self
Sourcepub fn set_gcs_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_uri<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_field_mask<T>(self, v: T) -> Self
pub fn set_field_mask<T>(self, v: T) -> Self
Sets the value of field_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = GcsOutputConfig::new().set_field_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_field_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_field_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of field_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = GcsOutputConfig::new().set_or_clear_field_mask(Some(FieldMask::default()/* use setters */));
let x = GcsOutputConfig::new().set_or_clear_field_mask(None::<FieldMask>);Sourcepub fn set_sharding_config<T>(self, v: T) -> Selfwhere
T: Into<ShardingConfig>,
pub fn set_sharding_config<T>(self, v: T) -> Selfwhere
T: Into<ShardingConfig>,
Sets the value of sharding_config.
§Example
ⓘ
use google_cloud_documentai_v1::model::document_output_config::gcs_output_config::ShardingConfig;
let x = GcsOutputConfig::new().set_sharding_config(ShardingConfig::default()/* use setters */);Sourcepub fn set_or_clear_sharding_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShardingConfig>,
pub fn set_or_clear_sharding_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ShardingConfig>,
Sets or clears the value of sharding_config.
§Example
ⓘ
use google_cloud_documentai_v1::model::document_output_config::gcs_output_config::ShardingConfig;
let x = GcsOutputConfig::new().set_or_clear_sharding_config(Some(ShardingConfig::default()/* use setters */));
let x = GcsOutputConfig::new().set_or_clear_sharding_config(None::<ShardingConfig>);Trait Implementations§
Source§impl Clone for GcsOutputConfig
impl Clone for GcsOutputConfig
Source§fn clone(&self) -> GcsOutputConfig
fn clone(&self) -> GcsOutputConfig
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 GcsOutputConfig
impl Debug for GcsOutputConfig
Source§impl Default for GcsOutputConfig
impl Default for GcsOutputConfig
Source§fn default() -> GcsOutputConfig
fn default() -> GcsOutputConfig
Returns the “default value” for a type. Read more
Source§impl Message for GcsOutputConfig
impl Message for GcsOutputConfig
Source§impl PartialEq for GcsOutputConfig
impl PartialEq for GcsOutputConfig
impl StructuralPartialEq for GcsOutputConfig
Auto Trait Implementations§
impl Freeze for GcsOutputConfig
impl RefUnwindSafe for GcsOutputConfig
impl Send for GcsOutputConfig
impl Sync for GcsOutputConfig
impl Unpin for GcsOutputConfig
impl UnwindSafe for GcsOutputConfig
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