pub enum Kind {
Show 36 variants
Bool(Boolean),
I8(I8),
I16(I16),
I32(I32),
I64(I64),
Fp32(Fp32),
Fp64(Fp64),
String(String),
Binary(Binary),
Timestamp(Timestamp),
Date(Date),
Time(Time),
IntervalYear(IntervalYear),
TimestampTz(TimestampTz),
Uuid(Uuid),
IntervalDay(Box<ExpressionIntervalDay>),
IntervalCompound(Box<ExpressionIntervalCompound>),
FixedChar(Box<ExpressionFixedChar>),
Varchar(Box<ExpressionVarChar>),
FixedBinary(Box<ExpressionFixedBinary>),
Decimal(Box<ExpressionDecimal>),
PrecisionTime(Box<ExpressionPrecisionTime>),
PrecisionTimestamp(Box<ExpressionPrecisionTimestamp>),
PrecisionTimestampTz(Box<ExpressionPrecisionTimestampTz>),
Struct(ExpressionStruct),
List(Box<ExpressionList>),
Map(Box<ExpressionMap>),
UserDefined(ExpressionUserDefined),
UserDefinedPointer(u32),
TypeParameterName(String),
IntegerParameterName(String),
IntegerLiteral(i32),
UnaryOp(Box<UnaryOp>),
BinaryOp(Box<BinaryOp>),
IfElse(Box<IfElse>),
ReturnProgram(Box<ReturnProgram>),
}
Variants§
Bool(Boolean)
I8(I8)
I16(I16)
I32(I32)
I64(I64)
Fp32(Fp32)
Fp64(Fp64)
String(String)
Binary(Binary)
Timestamp(Timestamp)
Deprecated in favor of ExpressionPrecisionTimestamp precision_timestamp
Date(Date)
Time(Time)
Deprecated in favor of ExpressionPrecisionTime precision_time
IntervalYear(IntervalYear)
TimestampTz(TimestampTz)
Deprecated in favor of ExpressionPrecisionTimestampTZ precision_timestamp_tz
Uuid(Uuid)
IntervalDay(Box<ExpressionIntervalDay>)
IntervalCompound(Box<ExpressionIntervalCompound>)
FixedChar(Box<ExpressionFixedChar>)
Varchar(Box<ExpressionVarChar>)
FixedBinary(Box<ExpressionFixedBinary>)
Decimal(Box<ExpressionDecimal>)
PrecisionTime(Box<ExpressionPrecisionTime>)
PrecisionTimestamp(Box<ExpressionPrecisionTimestamp>)
PrecisionTimestampTz(Box<ExpressionPrecisionTimestampTz>)
Struct(ExpressionStruct)
List(Box<ExpressionList>)
Map(Box<ExpressionMap>)
UserDefined(ExpressionUserDefined)
UserDefinedPointer(u32)
Deprecated in favor of user_defined, which allows nullability and variations to be specified. If user_defined_pointer is encountered, treat it as being non-nullable and having the default variation.
TypeParameterName(String)
IntegerParameterName(String)
IntegerLiteral(i32)
UnaryOp(Box<UnaryOp>)
BinaryOp(Box<BinaryOp>)
IfElse(Box<IfElse>)
ReturnProgram(Box<ReturnProgram>)
Implementations§
Source§impl Kind
impl Kind
Sourcepub fn merge(
field: &mut Option<Kind>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<Kind>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
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§
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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
Mutably borrows from an owned value. Read more