Struct google_datastore1::Value[][src]

pub struct Value {
    pub entity_value: Option<Entity>,
    pub timestamp_value: Option<String>,
    pub string_value: Option<String>,
    pub double_value: Option<f64>,
    pub meaning: Option<i32>,
    pub exclude_from_indexes: Option<bool>,
    pub blob_value: Option<String>,
    pub key_value: Option<Key>,
    pub boolean_value: Option<bool>,
    pub array_value: Option<ArrayValue>,
    pub integer_value: Option<String>,
    pub geo_point_value: Option<LatLng>,
    pub null_value: Option<String>,
}

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

An entity value.

  • May have no key.
  • May have a key with an incomplete key path.
  • May have a reserved/read-only key.

A timestamp value. When stored in the Datastore, precise only to microseconds; any additional precision is rounded down.

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 least 1,000,000 bytes.

A double value.

The meaning field should only be populated for backwards compatibility.

If the value should be excluded from all indexes including those defined explicitly.

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.

A key value.

A boolean value.

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.

An integer value.

A geo point value representing a point on the surface of Earth.

A null value.

Trait Implementations

impl Default for Value
[src]

Returns the "default value" for a type. Read more

impl Clone for Value
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Value
[src]

Formats the value using the given formatter. Read more

impl Part for Value
[src]

Auto Trait Implementations

impl Send for Value

impl Sync for Value