Struct aws_sdk_textract::types::LendingField
source · #[non_exhaustive]pub struct LendingField {
pub type: Option<String>,
pub key_detection: Option<LendingDetection>,
pub value_detections: Option<Vec<LendingDetection>>,
}
Expand description
Holds the normalized key-value pairs returned by AnalyzeDocument, including the document type, detected text, and geometry.
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.type: Option<String>
The type of the lending document.
key_detection: Option<LendingDetection>
The results extracted for a lending document.
value_detections: Option<Vec<LendingDetection>>
An array of LendingDetection objects.
Implementations§
source§impl LendingField
impl LendingField
sourcepub fn key_detection(&self) -> Option<&LendingDetection>
pub fn key_detection(&self) -> Option<&LendingDetection>
The results extracted for a lending document.
sourcepub fn value_detections(&self) -> &[LendingDetection]
pub fn value_detections(&self) -> &[LendingDetection]
An array of LendingDetection objects.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .value_detections.is_none()
.
source§impl LendingField
impl LendingField
sourcepub fn builder() -> LendingFieldBuilder
pub fn builder() -> LendingFieldBuilder
Creates a new builder-style object to manufacture LendingField
.
Trait Implementations§
source§impl Clone for LendingField
impl Clone for LendingField
source§fn clone(&self) -> LendingField
fn clone(&self) -> LendingField
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 LendingField
impl Debug for LendingField
source§impl PartialEq for LendingField
impl PartialEq for LendingField
source§fn eq(&self, other: &LendingField) -> bool
fn eq(&self, other: &LendingField) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LendingField
Auto Trait Implementations§
impl Freeze for LendingField
impl RefUnwindSafe for LendingField
impl Send for LendingField
impl Sync for LendingField
impl Unpin for LendingField
impl UnwindSafe for LendingField
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.