#[non_exhaustive]pub struct LayoutConfig {
pub chunking_config: Option<ChunkingConfig>,
pub return_images: bool,
pub return_bounding_boxes: bool,
/* private fields */
}Expand description
Serving config for layout parser processor.
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.chunking_config: Option<ChunkingConfig>Optional. Config for chunking in layout parser processor.
return_images: boolOptional. Whether to include images in layout parser processor response.
return_bounding_boxes: boolOptional. Whether to include bounding boxes in layout parser processor response.
Implementations§
Source§impl LayoutConfig
impl LayoutConfig
pub fn new() -> Self
Sourcepub fn set_chunking_config<T>(self, v: T) -> Selfwhere
T: Into<ChunkingConfig>,
pub fn set_chunking_config<T>(self, v: T) -> Selfwhere
T: Into<ChunkingConfig>,
Sets the value of chunking_config.
Sourcepub fn set_or_clear_chunking_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ChunkingConfig>,
pub fn set_or_clear_chunking_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ChunkingConfig>,
Sets or clears the value of chunking_config.
Sourcepub fn set_return_images<T: Into<bool>>(self, v: T) -> Self
pub fn set_return_images<T: Into<bool>>(self, v: T) -> Self
Sets the value of return_images.
Sourcepub fn set_return_bounding_boxes<T: Into<bool>>(self, v: T) -> Self
pub fn set_return_bounding_boxes<T: Into<bool>>(self, v: T) -> Self
Sets the value of return_bounding_boxes.
Trait Implementations§
Source§impl Clone for LayoutConfig
impl Clone for LayoutConfig
Source§fn clone(&self) -> LayoutConfig
fn clone(&self) -> LayoutConfig
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 LayoutConfig
impl Debug for LayoutConfig
Source§impl Default for LayoutConfig
impl Default for LayoutConfig
Source§fn default() -> LayoutConfig
fn default() -> LayoutConfig
Returns the “default value” for a type. Read more
Source§impl Message for LayoutConfig
impl Message for LayoutConfig
Source§impl PartialEq for LayoutConfig
impl PartialEq for LayoutConfig
impl StructuralPartialEq for LayoutConfig
Auto Trait Implementations§
impl Freeze for LayoutConfig
impl RefUnwindSafe for LayoutConfig
impl Send for LayoutConfig
impl Sync for LayoutConfig
impl Unpin for LayoutConfig
impl UnwindSafe for LayoutConfig
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