Struct aws_sdk_rekognition::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
Width of the bounding box as a ratio of the overall image width.
sourcepub fn set_width(self, input: Option<f32>) -> Self
pub fn set_width(self, input: Option<f32>) -> Self
Width of the bounding box as a ratio of the overall image width.
sourcepub fn get_width(&self) -> &Option<f32>
pub fn get_width(&self) -> &Option<f32>
Width of the bounding box as a ratio of the overall image width.
sourcepub fn height(self, input: f32) -> Self
pub fn height(self, input: f32) -> Self
Height of the bounding box as a ratio of the overall image height.
sourcepub fn set_height(self, input: Option<f32>) -> Self
pub fn set_height(self, input: Option<f32>) -> Self
Height of the bounding box as a ratio of the overall image height.
sourcepub fn get_height(&self) -> &Option<f32>
pub fn get_height(&self) -> &Option<f32>
Height of the bounding box as a ratio of the overall image height.
sourcepub fn left(self, input: f32) -> Self
pub fn left(self, input: f32) -> Self
Left coordinate of the bounding box as a ratio of overall image width.
sourcepub fn set_left(self, input: Option<f32>) -> Self
pub fn set_left(self, input: Option<f32>) -> Self
Left coordinate of the bounding box as a ratio of overall image width.
sourcepub fn get_left(&self) -> &Option<f32>
pub fn get_left(&self) -> &Option<f32>
Left coordinate of the bounding box as a ratio of overall image width.
sourcepub fn top(self, input: f32) -> Self
pub fn top(self, input: f32) -> Self
Top coordinate of the bounding box as a ratio of overall image height.
sourcepub fn set_top(self, input: Option<f32>) -> Self
pub fn set_top(self, input: Option<f32>) -> Self
Top coordinate of the bounding box as a ratio of overall image height.
sourcepub fn get_top(&self) -> &Option<f32>
pub fn get_top(&self) -> &Option<f32>
Top coordinate of the bounding box as a ratio of overall image 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 ==.