#[non_exhaustive]pub struct AnalyzeIdDetectionsBuilder { /* private fields */ }
Expand description
A builder for AnalyzeIdDetections
.
Implementations§
source§impl AnalyzeIdDetectionsBuilder
impl AnalyzeIdDetectionsBuilder
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
Text of either the normalized field or value associated with it.
This field is required.sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
Text of either the normalized field or value associated with it.
sourcepub fn get_text(&self) -> &Option<String>
pub fn get_text(&self) -> &Option<String>
Text of either the normalized field or value associated with it.
sourcepub fn normalized_value(self, input: NormalizedValue) -> Self
pub fn normalized_value(self, input: NormalizedValue) -> Self
Only returned for dates, returns the type of value detected and the date written in a more machine readable way.
sourcepub fn set_normalized_value(self, input: Option<NormalizedValue>) -> Self
pub fn set_normalized_value(self, input: Option<NormalizedValue>) -> Self
Only returned for dates, returns the type of value detected and the date written in a more machine readable way.
sourcepub fn get_normalized_value(&self) -> &Option<NormalizedValue>
pub fn get_normalized_value(&self) -> &Option<NormalizedValue>
Only returned for dates, returns the type of value detected and the date written in a more machine readable way.
sourcepub fn confidence(self, input: f32) -> Self
pub fn confidence(self, input: f32) -> Self
The confidence score of the detected text.
sourcepub fn set_confidence(self, input: Option<f32>) -> Self
pub fn set_confidence(self, input: Option<f32>) -> Self
The confidence score of the detected text.
sourcepub fn get_confidence(&self) -> &Option<f32>
pub fn get_confidence(&self) -> &Option<f32>
The confidence score of the detected text.
sourcepub fn build(self) -> Result<AnalyzeIdDetections, BuildError>
pub fn build(self) -> Result<AnalyzeIdDetections, BuildError>
Consumes the builder and constructs a AnalyzeIdDetections
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AnalyzeIdDetectionsBuilder
impl Clone for AnalyzeIdDetectionsBuilder
source§fn clone(&self) -> AnalyzeIdDetectionsBuilder
fn clone(&self) -> AnalyzeIdDetectionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnalyzeIdDetectionsBuilder
impl Debug for AnalyzeIdDetectionsBuilder
source§impl Default for AnalyzeIdDetectionsBuilder
impl Default for AnalyzeIdDetectionsBuilder
source§fn default() -> AnalyzeIdDetectionsBuilder
fn default() -> AnalyzeIdDetectionsBuilder
source§impl PartialEq for AnalyzeIdDetectionsBuilder
impl PartialEq for AnalyzeIdDetectionsBuilder
source§fn eq(&self, other: &AnalyzeIdDetectionsBuilder) -> bool
fn eq(&self, other: &AnalyzeIdDetectionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.