pub struct Value {Show 13 fields
pub array_value: Option<ArrayValue>,
pub blob_value: Option<Vec<u8>>,
pub boolean_value: Option<bool>,
pub double_value: Option<f64>,
pub entity_value: Option<Entity>,
pub exclude_from_indexes: Option<bool>,
pub geo_point_value: Option<LatLng>,
pub integer_value: Option<i64>,
pub key_value: Option<Key>,
pub meaning: Option<i32>,
pub null_value: Option<String>,
pub string_value: Option<String>,
pub timestamp_value: Option<DateTime<Utc>>,
}
Expand description
A message that can hold any of the supported value types and associated metadata.
This type is not used in any activity, and only used as part of another schema.
Fields§
§array_value: Option<ArrayValue>
An array value. Cannot contain another array value. A Value
instance that sets field array_value
must not set fields meaning
or exclude_from_indexes
.
blob_value: Option<Vec<u8>>
A blob value. May have at most 1,000,000 bytes. When exclude_from_indexes
is false, may have at most 1500 bytes. In JSON requests, must be base64-encoded.
boolean_value: Option<bool>
A boolean value.
double_value: Option<f64>
A double value.
entity_value: Option<Entity>
An entity value. - May have no key. - May have a key with an incomplete key path. - May have a reserved/read-only key.
exclude_from_indexes: Option<bool>
If the value should be excluded from all indexes including those defined explicitly.
geo_point_value: Option<LatLng>
A geo point value representing a point on the surface of Earth.
integer_value: Option<i64>
An integer value.
key_value: Option<Key>
A key value.
meaning: Option<i32>
The meaning
field should only be populated for backwards compatibility.
null_value: Option<String>
A null value.
string_value: Option<String>
A UTF-8 encoded string value. When exclude_from_indexes
is false (it is indexed) , may have at most 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes.
timestamp_value: Option<DateTime<Utc>>
A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 more