Struct aws_sdk_textract::types::AnalyzeIdDetections
source · #[non_exhaustive]pub struct AnalyzeIdDetections {
pub text: String,
pub normalized_value: Option<NormalizedValue>,
pub confidence: Option<f32>,
}
Expand description
Used to contain the information detected by an AnalyzeID operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.text: String
Text of either the normalized field or value associated with it.
normalized_value: Option<NormalizedValue>
Only returned for dates, returns the type of value detected and the date written in a more machine readable way.
confidence: Option<f32>
The confidence score of the detected text.
Implementations§
source§impl AnalyzeIdDetections
impl AnalyzeIdDetections
sourcepub fn normalized_value(&self) -> Option<&NormalizedValue>
pub fn 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) -> Option<f32>
pub fn confidence(&self) -> Option<f32>
The confidence score of the detected text.
source§impl AnalyzeIdDetections
impl AnalyzeIdDetections
sourcepub fn builder() -> AnalyzeIdDetectionsBuilder
pub fn builder() -> AnalyzeIdDetectionsBuilder
Creates a new builder-style object to manufacture AnalyzeIdDetections
.
Trait Implementations§
source§impl Clone for AnalyzeIdDetections
impl Clone for AnalyzeIdDetections
source§fn clone(&self) -> AnalyzeIdDetections
fn clone(&self) -> AnalyzeIdDetections
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 AnalyzeIdDetections
impl Debug for AnalyzeIdDetections
source§impl PartialEq for AnalyzeIdDetections
impl PartialEq for AnalyzeIdDetections
source§fn eq(&self, other: &AnalyzeIdDetections) -> bool
fn eq(&self, other: &AnalyzeIdDetections) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnalyzeIdDetections
Auto Trait Implementations§
impl Freeze for AnalyzeIdDetections
impl RefUnwindSafe for AnalyzeIdDetections
impl Send for AnalyzeIdDetections
impl Sync for AnalyzeIdDetections
impl Unpin for AnalyzeIdDetections
impl UnwindSafe for AnalyzeIdDetections
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.