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 ==
.impl StructuralPartialEq for BoundingBox
Auto Trait Implementations§
impl Freeze for BoundingBox
impl RefUnwindSafe for BoundingBox
impl Send for BoundingBox
impl Sync for BoundingBox
impl Unpin for BoundingBox
impl UnwindSafe for BoundingBox
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