Struct aws_sdk_textract::types::builders::BoundingBoxBuilder
source · #[non_exhaustive]pub struct BoundingBoxBuilder { /* private fields */ }
Expand description
A builder for BoundingBox
.
Implementations§
source§impl BoundingBoxBuilder
impl BoundingBoxBuilder
sourcepub fn width(self, input: f32) -> Self
pub fn width(self, input: f32) -> Self
The width of the bounding box as a ratio of the overall document page width.
sourcepub fn set_width(self, input: Option<f32>) -> Self
pub fn set_width(self, input: Option<f32>) -> Self
The width of the bounding box as a ratio of the overall document page width.
sourcepub fn get_width(&self) -> &Option<f32>
pub fn get_width(&self) -> &Option<f32>
The width of the bounding box as a ratio of the overall document page width.
sourcepub fn height(self, input: f32) -> Self
pub fn height(self, input: f32) -> Self
The height of the bounding box as a ratio of the overall document page height.
sourcepub fn set_height(self, input: Option<f32>) -> Self
pub fn set_height(self, input: Option<f32>) -> Self
The height of the bounding box as a ratio of the overall document page height.
sourcepub fn get_height(&self) -> &Option<f32>
pub fn get_height(&self) -> &Option<f32>
The height of the bounding box as a ratio of the overall document page height.
sourcepub fn left(self, input: f32) -> Self
pub fn left(self, input: f32) -> Self
The left coordinate of the bounding box as a ratio of overall document page width.
sourcepub fn set_left(self, input: Option<f32>) -> Self
pub fn set_left(self, input: Option<f32>) -> Self
The left coordinate of the bounding box as a ratio of overall document page width.
sourcepub fn get_left(&self) -> &Option<f32>
pub fn get_left(&self) -> &Option<f32>
The left coordinate of the bounding box as a ratio of overall document page width.
sourcepub fn top(self, input: f32) -> Self
pub fn top(self, input: f32) -> Self
The top coordinate of the bounding box as a ratio of overall document page height.
sourcepub fn set_top(self, input: Option<f32>) -> Self
pub fn set_top(self, input: Option<f32>) -> Self
The top coordinate of the bounding box as a ratio of overall document page height.
sourcepub fn get_top(&self) -> &Option<f32>
pub fn get_top(&self) -> &Option<f32>
The top coordinate of the bounding box as a ratio of overall document page height.
sourcepub fn build(self) -> BoundingBox
pub fn build(self) -> BoundingBox
Consumes the builder and constructs a BoundingBox
.
Trait Implementations§
source§impl Clone for BoundingBoxBuilder
impl Clone for BoundingBoxBuilder
source§fn clone(&self) -> BoundingBoxBuilder
fn clone(&self) -> BoundingBoxBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BoundingBoxBuilder
impl Debug for BoundingBoxBuilder
source§impl Default for BoundingBoxBuilder
impl Default for BoundingBoxBuilder
source§fn default() -> BoundingBoxBuilder
fn default() -> BoundingBoxBuilder
source§impl PartialEq for BoundingBoxBuilder
impl PartialEq for BoundingBoxBuilder
source§fn eq(&self, other: &BoundingBoxBuilder) -> bool
fn eq(&self, other: &BoundingBoxBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.