Struct aws_sdk_comprehend::types::BoundingBox
source · #[non_exhaustive]pub struct BoundingBox {
pub height: Option<f32>,
pub left: Option<f32>,
pub top: Option<f32>,
pub width: Option<f32>,
}
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.height: Option<f32>
The height of the bounding box as a ratio of the overall document page height.
left: Option<f32>
The left coordinate of the bounding box as a ratio of overall document page width.
top: Option<f32>
The top coordinate of the bounding box as a ratio of overall document page height.
width: Option<f32>
The width of the bounding box as a ratio of the overall document page width.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BoundingBox
impl Debug for BoundingBox
source§impl PartialEq for BoundingBox
impl PartialEq for BoundingBox
source§fn eq(&self, other: &BoundingBox) -> bool
fn eq(&self, other: &BoundingBox) -> bool
self
and other
values to be equal, and is used
by ==
.