#[non_exhaustive]pub struct ParsingConfig {
pub type_dedicated_config: Option<TypeDedicatedConfig>,
/* private fields */
}data-store-service only.Expand description
Related configurations applied to a specific type of document parser.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_dedicated_config: Option<TypeDedicatedConfig>Configs for document processing types.
Implementations§
Source§impl ParsingConfig
impl ParsingConfig
Sourcepub fn set_type_dedicated_config<T: Into<Option<TypeDedicatedConfig>>>(
self,
v: T,
) -> Self
pub fn set_type_dedicated_config<T: Into<Option<TypeDedicatedConfig>>>( self, v: T, ) -> Self
Sets the value of type_dedicated_config.
Note that all the setters affecting type_dedicated_config are mutually
exclusive.
§Example
use google_cloud_discoveryengine_v1::model::document_processing_config::parsing_config::DigitalParsingConfig;
let x = ParsingConfig::new().set_type_dedicated_config(Some(
google_cloud_discoveryengine_v1::model::document_processing_config::parsing_config::TypeDedicatedConfig::DigitalParsingConfig(DigitalParsingConfig::default().into())));Sourcepub fn digital_parsing_config(&self) -> Option<&Box<DigitalParsingConfig>>
pub fn digital_parsing_config(&self) -> Option<&Box<DigitalParsingConfig>>
The value of type_dedicated_config
if it holds a DigitalParsingConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_digital_parsing_config<T: Into<Box<DigitalParsingConfig>>>(
self,
v: T,
) -> Self
pub fn set_digital_parsing_config<T: Into<Box<DigitalParsingConfig>>>( self, v: T, ) -> Self
Sets the value of type_dedicated_config
to hold a DigitalParsingConfig.
Note that all the setters affecting type_dedicated_config are
mutually exclusive.
§Example
use google_cloud_discoveryengine_v1::model::document_processing_config::parsing_config::DigitalParsingConfig;
let x = ParsingConfig::new().set_digital_parsing_config(DigitalParsingConfig::default()/* use setters */);
assert!(x.digital_parsing_config().is_some());
assert!(x.ocr_parsing_config().is_none());
assert!(x.layout_parsing_config().is_none());Sourcepub fn ocr_parsing_config(&self) -> Option<&Box<OcrParsingConfig>>
pub fn ocr_parsing_config(&self) -> Option<&Box<OcrParsingConfig>>
The value of type_dedicated_config
if it holds a OcrParsingConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_ocr_parsing_config<T: Into<Box<OcrParsingConfig>>>(
self,
v: T,
) -> Self
pub fn set_ocr_parsing_config<T: Into<Box<OcrParsingConfig>>>( self, v: T, ) -> Self
Sets the value of type_dedicated_config
to hold a OcrParsingConfig.
Note that all the setters affecting type_dedicated_config are
mutually exclusive.
§Example
use google_cloud_discoveryengine_v1::model::document_processing_config::parsing_config::OcrParsingConfig;
let x = ParsingConfig::new().set_ocr_parsing_config(OcrParsingConfig::default()/* use setters */);
assert!(x.ocr_parsing_config().is_some());
assert!(x.digital_parsing_config().is_none());
assert!(x.layout_parsing_config().is_none());Sourcepub fn layout_parsing_config(&self) -> Option<&Box<LayoutParsingConfig>>
pub fn layout_parsing_config(&self) -> Option<&Box<LayoutParsingConfig>>
The value of type_dedicated_config
if it holds a LayoutParsingConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_layout_parsing_config<T: Into<Box<LayoutParsingConfig>>>(
self,
v: T,
) -> Self
pub fn set_layout_parsing_config<T: Into<Box<LayoutParsingConfig>>>( self, v: T, ) -> Self
Sets the value of type_dedicated_config
to hold a LayoutParsingConfig.
Note that all the setters affecting type_dedicated_config are
mutually exclusive.
§Example
use google_cloud_discoveryengine_v1::model::document_processing_config::parsing_config::LayoutParsingConfig;
let x = ParsingConfig::new().set_layout_parsing_config(LayoutParsingConfig::default()/* use setters */);
assert!(x.layout_parsing_config().is_some());
assert!(x.digital_parsing_config().is_none());
assert!(x.ocr_parsing_config().is_none());Trait Implementations§
Source§impl Clone for ParsingConfig
impl Clone for ParsingConfig
Source§fn clone(&self) -> ParsingConfig
fn clone(&self) -> ParsingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParsingConfig
impl Debug for ParsingConfig
Source§impl Default for ParsingConfig
impl Default for ParsingConfig
Source§fn default() -> ParsingConfig
fn default() -> ParsingConfig
Source§impl Message for ParsingConfig
impl Message for ParsingConfig
Source§impl PartialEq for ParsingConfig
impl PartialEq for ParsingConfig
impl StructuralPartialEq for ParsingConfig
Auto Trait Implementations§
impl Freeze for ParsingConfig
impl RefUnwindSafe for ParsingConfig
impl Send for ParsingConfig
impl Sync for ParsingConfig
impl Unpin for ParsingConfig
impl UnsafeUnpin for ParsingConfig
impl UnwindSafe for ParsingConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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