Struct aws_sdk_textract::types::builders::PredictionBuilder
source · #[non_exhaustive]pub struct PredictionBuilder { /* private fields */ }
Expand description
A builder for Prediction
.
Implementations§
source§impl PredictionBuilder
impl PredictionBuilder
sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
The predicted value of a detected object.
sourcepub fn confidence(self, input: f32) -> Self
pub fn confidence(self, input: f32) -> Self
Amazon Textract's confidence in its predicted value.
sourcepub fn set_confidence(self, input: Option<f32>) -> Self
pub fn set_confidence(self, input: Option<f32>) -> Self
Amazon Textract's confidence in its predicted value.
sourcepub fn get_confidence(&self) -> &Option<f32>
pub fn get_confidence(&self) -> &Option<f32>
Amazon Textract's confidence in its predicted value.
sourcepub fn build(self) -> Prediction
pub fn build(self) -> Prediction
Consumes the builder and constructs a Prediction
.
Trait Implementations§
source§impl Clone for PredictionBuilder
impl Clone for PredictionBuilder
source§fn clone(&self) -> PredictionBuilder
fn clone(&self) -> PredictionBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PredictionBuilder
impl Debug for PredictionBuilder
source§impl Default for PredictionBuilder
impl Default for PredictionBuilder
source§fn default() -> PredictionBuilder
fn default() -> PredictionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PredictionBuilder
impl PartialEq for PredictionBuilder
source§fn eq(&self, other: &PredictionBuilder) -> bool
fn eq(&self, other: &PredictionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PredictionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for PredictionBuilder
impl Send for PredictionBuilder
impl Sync for PredictionBuilder
impl Unpin for PredictionBuilder
impl UnwindSafe for PredictionBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.