pub enum ValueType {
NullValue(i32),
BooleanValue(bool),
IntegerValue(i64),
DoubleValue(f64),
TimestampValue(Timestamp),
StringValue(String),
BytesValue(Bytes),
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(Bytes)
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§
source§impl ValueType
impl ValueType
sourcepub fn merge<B>(
field: &mut Option<ValueType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<ValueType>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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