Struct google_api_proto::google::cloud::documentai::v1beta3::document::page::FormField
source · pub struct FormField {
pub field_name: Option<Layout>,
pub field_value: Option<Layout>,
pub name_detected_languages: Vec<DetectedLanguage>,
pub value_detected_languages: Vec<DetectedLanguage>,
pub value_type: String,
pub corrected_key_text: String,
pub corrected_value_text: String,
pub provenance: Option<Provenance>,
}
Expand description
A form field detected on the page.
Fields§
§field_name: Option<Layout>
[Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for the
[FormField][google.cloud.documentai.v1beta3.Document.Page.FormField]
name. e.g. Address
, Email
, Grand total
, Phone number
, etc.
field_value: Option<Layout>
[Layout][google.cloud.documentai.v1beta3.Document.Page.Layout] for the [FormField][google.cloud.documentai.v1beta3.Document.Page.FormField] value.
name_detected_languages: Vec<DetectedLanguage>
A list of detected languages for name together with confidence.
value_detected_languages: Vec<DetectedLanguage>
A list of detected languages for value together with confidence.
value_type: String
If the value is non-textual, this field represents the type. Current valid values are:
- blank (this indicates the
field_value
is normal text) unfilled_checkbox
filled_checkbox
corrected_key_text: String
Created for Labeling UI to export key text.
If corrections were made to the text identified by the
field_name.text_anchor
, this field will contain the correction.
corrected_value_text: String
Created for Labeling UI to export value text.
If corrections were made to the text identified by the
field_value.text_anchor
, this field will contain the correction.
provenance: Option<Provenance>
The history of this annotation.
Trait Implementations§
source§impl Message for FormField
impl Message for FormField
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for FormField
impl PartialEq for FormField
impl StructuralPartialEq for FormField
Auto Trait Implementations§
impl Freeze for FormField
impl RefUnwindSafe for FormField
impl Send for FormField
impl Sync for FormField
impl Unpin for FormField
impl UnwindSafe for FormField
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request