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.
BooleanValue(bool)
A boolean value.
IntegerValue(i64)
An integer value.
DoubleValue(f64)
A double value.
TimestampValue(Timestamp)
A timestamp value.
Precise only to microseconds. When stored, any additional precision is rounded down.
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.
BytesValue(Vec<u8>)
A bytes value.
Must not exceed 1 MiB - 89 bytes. Only the first 1,500 bytes are considered by queries.
ReferenceValue(String)
A reference to a document. For example:
projects/{project_id}/databases/{database_id}/documents/{document_path}
.
GeoPointValue(LatLng)
A geo point value representing a point on the surface of Earth.
ArrayValue(ArrayValue)
An array value.
Cannot directly contain another array value, though can contain an map which contains another array.
MapValue(MapValue)
A map value.
Implementations§
Trait Implementations§
source§impl PartialEq for ValueType
impl PartialEq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
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> 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> 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