#[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.
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) -> AnalyzeIdDetections
pub fn build(self) -> AnalyzeIdDetections
Consumes the builder and constructs a AnalyzeIdDetections.
Trait Implementations§
source§impl Clone for AnalyzeIdDetectionsBuilder
impl Clone for AnalyzeIdDetectionsBuilder
source§fn clone(&self) -> AnalyzeIdDetectionsBuilder
fn clone(&self) -> AnalyzeIdDetectionsBuilder
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 AnalyzeIdDetectionsBuilder
impl Debug for AnalyzeIdDetectionsBuilder
source§impl Default for AnalyzeIdDetectionsBuilder
impl Default for AnalyzeIdDetectionsBuilder
source§fn default() -> AnalyzeIdDetectionsBuilder
fn default() -> AnalyzeIdDetectionsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<AnalyzeIdDetectionsBuilder> for AnalyzeIdDetectionsBuilder
impl PartialEq<AnalyzeIdDetectionsBuilder> for AnalyzeIdDetectionsBuilder
source§fn eq(&self, other: &AnalyzeIdDetectionsBuilder) -> bool
fn eq(&self, other: &AnalyzeIdDetectionsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AnalyzeIdDetectionsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for AnalyzeIdDetectionsBuilder
impl Send for AnalyzeIdDetectionsBuilder
impl Sync for AnalyzeIdDetectionsBuilder
impl Unpin for AnalyzeIdDetectionsBuilder
impl UnwindSafe for AnalyzeIdDetectionsBuilder
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