#[non_exhaustive]pub enum StructuredValue {
MoneyValue(Box<Money>),
DateValue(Box<Date>),
DatetimeValue(Box<DateTime>),
AddressValue(Box<PostalAddress>),
BooleanValue(bool),
IntegerValue(i32),
FloatValue(f32),
SignatureValue(bool),
}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 (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MoneyValue(Box<Money>)
Money value. See also: https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
DateValue(Box<Date>)
Date value. Includes year, month, day. See also: https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
DatetimeValue(Box<DateTime>)
DateTime value. Includes date, time, and timezone. See also: https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
AddressValue(Box<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.
SignatureValue(bool)
Trait Implementations§
Source§impl Clone for StructuredValue
impl Clone for StructuredValue
Source§fn clone(&self) -> StructuredValue
fn clone(&self) -> StructuredValue
Returns a duplicate 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 StructuredValue
impl Debug for StructuredValue
Source§impl PartialEq for StructuredValue
impl PartialEq for StructuredValue
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
Mutably borrows from an owned value. Read more