Enum googapis::google::firestore::v1::value::ValueType[][src]

pub enum ValueType {
    NullValue(i32),
    BooleanValue(bool),
    IntegerValue(i64),
    DoubleValue(f64),
    TimestampValue(Timestamp),
    StringValue(String),
    BytesValue(Vec<u8>),
    ReferenceValue(String),
    GeoPointValue(LatLng),
    ArrayValue(ArrayValue),
    MapValue(MapValue),
}
Expand description

Must have a value set.

Variants

NullValue(i32)

A null value.

Tuple Fields of NullValue

0: i32
BooleanValue(bool)

A boolean value.

Tuple Fields of BooleanValue

0: bool
IntegerValue(i64)

An integer value.

Tuple Fields of IntegerValue

0: i64
DoubleValue(f64)

A double value.

Tuple Fields of DoubleValue

0: f64
TimestampValue(Timestamp)

A timestamp value.

Precise only to microseconds. When stored, any additional precision is rounded down.

Tuple Fields of TimestampValue

0: Timestamp
StringValue(String)

A string value.

The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes of the UTF-8 representation are considered by queries.

Tuple Fields of StringValue

0: String
BytesValue(Vec<u8>)

A bytes value.

Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.

Tuple Fields of BytesValue

0: Vec<u8>
ReferenceValue(String)

A reference to a document. For example: projects/{project_id}/databases/{database_id}/documents/{document_path}.

Tuple Fields of ReferenceValue

0: String
GeoPointValue(LatLng)

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

Tuple Fields of GeoPointValue

0: LatLng
ArrayValue(ArrayValue)

An array value.

Cannot directly contain another array value, though can contain an map which contains another array.

Tuple Fields of ArrayValue

0: ArrayValue
MapValue(MapValue)

A map value.

Tuple Fields of MapValue

0: MapValue

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more