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 ==
.impl StructuralPartialEq for BlockBuilder
Auto Trait Implementations§
impl Freeze for BlockBuilder
impl RefUnwindSafe for BlockBuilder
impl Send for BlockBuilder
impl Sync for BlockBuilder
impl Unpin for BlockBuilder
impl UnwindSafe for BlockBuilder
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more