pub enum ValueType {
IsNull(bool),
IntValue(i64),
BoolValue(bool),
DoubleValue(f64),
BytesValue(Bytes),
StringValue(String),
StructValue(ValueList),
TimestampValue(Timestamp),
DateDaysValue(i32),
IsCommitTimestamp(bool),
ArrayValue(ValueList),
}
Expand description
Exactly one of the following fields will be present.
Variants§
IsNull(bool)
If is_null is set, then this value is null.
IntValue(i64)
Int type value. It’s used for all integer number types, like int32 and int64.
BoolValue(bool)
Bool type value.
DoubleValue(f64)
Double type value. It’s used for all float point types, like float and double.
BytesValue(Bytes)
Bytes type value, stored in CORD. It’s also used for PROTO type value.
StringValue(String)
String type value, stored in CORD.
StructValue(ValueList)
Struct type value. It contains a ValueList representing the values in this struct.
TimestampValue(Timestamp)
Timestamp type value.
DateDaysValue(i32)
Date type value. Date is specified as a number of days since Unix epoch.
IsCommitTimestamp(bool)
If set, holds the sentinel value for the transaction CommitTimestamp.
ArrayValue(ValueList)
Array type value. The underlying Valuelist should have values that have the same type.
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