Struct aws_sdk_comprehend::types::Block
source · #[non_exhaustive]pub struct Block { /* private fields */ }Expand description
Information about each word or line of text in the input document.
For additional information, see Block in the Amazon Textract API reference.
Implementations§
source§impl Block
impl Block
sourcepub fn block_type(&self) -> Option<&BlockType>
pub fn 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 geometry(&self) -> Option<&Geometry>
pub fn geometry(&self) -> Option<&Geometry>
Co-ordinates of the rectangle or polygon that contains the text.
sourcepub fn relationships(&self) -> Option<&[RelationshipsListItem]>
pub fn relationships(&self) -> Option<&[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 PartialEq<Block> for Block
impl PartialEq<Block> for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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