Struct aws_sdk_comprehend::types::builders::BlockBuilder
source · #[non_exhaustive]pub struct BlockBuilder { /* private fields */ }
Expand description
A builder for Block
.
Implementations§
source§impl BlockBuilder
impl BlockBuilder
sourcepub fn block_type(self, input: BlockType) -> Self
pub fn block_type(self, input: BlockType) -> Self
The block represents a line of text or one word of text.
-
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
-
LINE - A string of tab-delimited, contiguous words that are detected on a document page
sourcepub fn set_block_type(self, input: Option<BlockType>) -> Self
pub fn set_block_type(self, input: Option<BlockType>) -> Self
The block represents a line of text or one word of text.
-
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
-
LINE - A string of tab-delimited, contiguous words that are detected on a document page
sourcepub fn get_block_type(&self) -> &Option<BlockType>
pub fn get_block_type(&self) -> &Option<BlockType>
The block represents a line of text or one word of text.
-
WORD - A word that's detected on a document page. A word is one or more ISO basic Latin script characters that aren't separated by spaces.
-
LINE - A string of tab-delimited, contiguous words that are detected on a document page
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
The word or line of text extracted from the block.
sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
The word or line of text extracted from the block.
sourcepub fn geometry(self, input: Geometry) -> Self
pub fn geometry(self, input: Geometry) -> Self
Co-ordinates of the rectangle or polygon that contains the text.
sourcepub fn set_geometry(self, input: Option<Geometry>) -> Self
pub fn set_geometry(self, input: Option<Geometry>) -> Self
Co-ordinates of the rectangle or polygon that contains the text.
sourcepub fn get_geometry(&self) -> &Option<Geometry>
pub fn get_geometry(&self) -> &Option<Geometry>
Co-ordinates of the rectangle or polygon that contains the text.
sourcepub fn relationships(self, input: RelationshipsListItem) -> Self
pub fn relationships(self, input: RelationshipsListItem) -> Self
Appends an item to relationships
.
To override the contents of this collection use set_relationships
.
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.
sourcepub fn set_relationships(
self,
input: Option<Vec<RelationshipsListItem>>
) -> Self
pub fn set_relationships( self, input: Option<Vec<RelationshipsListItem>> ) -> Self
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.
sourcepub fn get_relationships(&self) -> &Option<Vec<RelationshipsListItem>>
pub fn get_relationships(&self) -> &Option<Vec<RelationshipsListItem>>
A list of child blocks of the current block. For example, a LINE object has child blocks for each WORD block that's part of the line of text.
Trait Implementations§
source§impl Clone for BlockBuilder
impl Clone for BlockBuilder
source§fn clone(&self) -> BlockBuilder
fn clone(&self) -> BlockBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BlockBuilder
impl Debug for BlockBuilder
source§impl Default for BlockBuilder
impl Default for BlockBuilder
source§fn default() -> BlockBuilder
fn default() -> BlockBuilder
source§impl PartialEq for BlockBuilder
impl PartialEq for BlockBuilder
source§fn eq(&self, other: &BlockBuilder) -> bool
fn eq(&self, other: &BlockBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.