Struct aws_sdk_textract::model::ExpenseField
source · [−]#[non_exhaustive]pub struct ExpenseField {
pub type: Option<ExpenseType>,
pub label_detection: Option<ExpenseDetection>,
pub value_detection: Option<ExpenseDetection>,
pub page_number: Option<i32>,
}
Expand description
Breakdown of detected information, seperated into the catagories Type, LabelDetection, and ValueDetection
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.type: Option<ExpenseType>
The implied label of a detected element. Present alongside LabelDetection for explicit elements.
label_detection: Option<ExpenseDetection>
The explicitly stated label of a detected element.
value_detection: Option<ExpenseDetection>
The value of a detected element. Present in explicit and implicit elements.
page_number: Option<i32>
The page number the value was detected on.
Implementations
sourceimpl ExpenseField
impl ExpenseField
sourcepub fn type(&self) -> Option<&ExpenseType>
pub fn type(&self) -> Option<&ExpenseType>
The implied label of a detected element. Present alongside LabelDetection for explicit elements.
sourcepub fn label_detection(&self) -> Option<&ExpenseDetection>
pub fn label_detection(&self) -> Option<&ExpenseDetection>
The explicitly stated label of a detected element.
sourcepub fn value_detection(&self) -> Option<&ExpenseDetection>
pub fn value_detection(&self) -> Option<&ExpenseDetection>
The value of a detected element. Present in explicit and implicit elements.
sourcepub fn page_number(&self) -> Option<i32>
pub fn page_number(&self) -> Option<i32>
The page number the value was detected on.
sourceimpl ExpenseField
impl ExpenseField
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ExpenseField
Trait Implementations
sourceimpl Clone for ExpenseField
impl Clone for ExpenseField
sourcefn clone(&self) -> ExpenseField
fn clone(&self) -> ExpenseField
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExpenseField
impl Debug for ExpenseField
sourceimpl PartialEq<ExpenseField> for ExpenseField
impl PartialEq<ExpenseField> for ExpenseField
sourcefn eq(&self, other: &ExpenseField) -> bool
fn eq(&self, other: &ExpenseField) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExpenseField) -> bool
fn ne(&self, other: &ExpenseField) -> bool
This method tests for !=
.
impl StructuralPartialEq for ExpenseField
Auto Trait Implementations
impl RefUnwindSafe for ExpenseField
impl Send for ExpenseField
impl Sync for ExpenseField
impl Unpin for ExpenseField
impl UnwindSafe for ExpenseField
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more