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
impl StructuralPartialEq for BoundingBoxBuilder
Auto Trait Implementations§
impl Freeze for BoundingBoxBuilder
impl RefUnwindSafe for BoundingBoxBuilder
impl Send for BoundingBoxBuilder
impl Sync for BoundingBoxBuilder
impl Unpin for BoundingBoxBuilder
impl UnwindSafe for BoundingBoxBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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