Struct aws_sdk_comprehend::types::BoundingBox
source · #[non_exhaustive]pub struct BoundingBox { /* private fields */ }Expand description
The bounding box around the detected page or around an element on a document page. The left (x-coordinate) and top (y-coordinate) are coordinates that represent the top and left sides of the bounding box. Note that the upper-left corner of the image is the origin (0,0).
For additional information, see BoundingBox in the Amazon Textract API reference.
Implementations§
source§impl BoundingBox
impl BoundingBox
sourcepub fn height(&self) -> Option<f32>
pub fn height(&self) -> Option<f32>
The height of the bounding box as a ratio of the overall document page height.
sourcepub fn left(&self) -> Option<f32>
pub fn left(&self) -> Option<f32>
The left coordinate of the bounding box as a ratio of overall document page width.
source§impl BoundingBox
impl BoundingBox
sourcepub fn builder() -> BoundingBoxBuilder
pub fn builder() -> BoundingBoxBuilder
Creates a new builder-style object to manufacture BoundingBox.
Trait Implementations§
source§impl Clone for BoundingBox
impl Clone for BoundingBox
source§fn clone(&self) -> BoundingBox
fn clone(&self) -> BoundingBox
Returns a copy 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 BoundingBox
impl Debug for BoundingBox
source§impl PartialEq<BoundingBox> for BoundingBox
impl PartialEq<BoundingBox> for BoundingBox
source§fn eq(&self, other: &BoundingBox) -> bool
fn eq(&self, other: &BoundingBox) -> bool
This method tests for
self and other values to be equal, and is used
by ==.