#[non_exhaustive]pub struct ParsingConfig {
pub type_dedicated_config: Option<TypeDedicatedConfig>,
/* private fields */
}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
pub fn new() -> Self
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.
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.
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.
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.
Trait Implementations§
Source§impl Clone for ParsingConfig
impl Clone for ParsingConfig
Source§fn clone(&self) -> ParsingConfig
fn clone(&self) -> ParsingConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more