Enum google_api_proto::google::cloud::documentai::v1beta3::document::entity::normalized_value::StructuredValue
source · pub enum StructuredValue {
MoneyValue(Money),
DateValue(Date),
DatetimeValue(DateTime),
AddressValue(PostalAddress),
BooleanValue(bool),
IntegerValue(i32),
FloatValue(f32),
}
Expand description
An optional structured entity value.
Must match entity type defined in schema if
known. If this field is present, the text
field could also be
populated.
Variants§
MoneyValue(Money)
Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
DateValue(Date)
Date value. Includes year, month, day. See also: https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
DatetimeValue(DateTime)
DateTime value. Includes date, time, and timezone. See also: https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
AddressValue(PostalAddress)
Postal address. See also: https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
BooleanValue(bool)
Boolean value. Can be used for entities with binary values, or for checkboxes.
IntegerValue(i32)
Integer value.
FloatValue(f32)
Float value.
Implementations§
source§impl StructuredValue
impl StructuredValue
sourcepub fn merge(
field: &mut Option<StructuredValue>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<StructuredValue>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for StructuredValue
impl Clone for StructuredValue
source§fn clone(&self) -> StructuredValue
fn clone(&self) -> StructuredValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StructuredValue
impl Debug for StructuredValue
source§impl PartialEq for StructuredValue
impl PartialEq for StructuredValue
source§fn eq(&self, other: &StructuredValue) -> bool
fn eq(&self, other: &StructuredValue) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for StructuredValue
Auto Trait Implementations§
impl Freeze for StructuredValue
impl RefUnwindSafe for StructuredValue
impl Send for StructuredValue
impl Sync for StructuredValue
impl Unpin for StructuredValue
impl UnwindSafe for StructuredValue
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