Enum mz_repr::row::encoding::DatumDecoder
source · pub enum DatumDecoder<'a> {
Show 33 variants
Bool(DataRef<'a, bool>),
OptBool(DataRef<'a, Option<bool>>),
Int16(DataRef<'a, i16>),
OptInt16(DataRef<'a, Option<i16>>),
Int32(DataRef<'a, i32>),
OptInt32(DataRef<'a, Option<i32>>),
Int64(DataRef<'a, i64>),
OptInt64(DataRef<'a, Option<i64>>),
UInt8(DataRef<'a, u8>),
OptUInt8(DataRef<'a, Option<u8>>),
UInt16(DataRef<'a, u16>),
OptUInt16(DataRef<'a, Option<u16>>),
UInt32(DataRef<'a, u32>),
OptUInt32(DataRef<'a, Option<u32>>),
UInt64(DataRef<'a, u64>),
OptUInt64(DataRef<'a, Option<u64>>),
Float32(DataRef<'a, f32>),
OptFloat32(DataRef<'a, Option<f32>>),
Float64(DataRef<'a, f64>),
OptFloat64(DataRef<'a, Option<f64>>),
Date(DataRef<'a, Date>),
OptDate(DataRef<'a, Option<Date>>),
Bytes(DataRef<'a, Vec<u8>>),
OptBytes(DataRef<'a, Option<Vec<u8>>>),
String(DataRef<'a, String>),
OptString(DataRef<'a, Option<String>>),
Jsonb(DataRef<'a, Jsonb>),
OptJsonb(DataRef<'a, Option<Jsonb>>),
MzTimestamp(DataRef<'a, Timestamp>),
OptMzTimestamp(DataRef<'a, Option<Timestamp>>),
Todo(DataRef<'a, ProtoDatumToPersist>),
OptTodo(DataRef<'a, NullableProtoDatumToPersist>),
NoStats(NoStats),
}
Variants§
Bool(DataRef<'a, bool>)
OptBool(DataRef<'a, Option<bool>>)
Int16(DataRef<'a, i16>)
OptInt16(DataRef<'a, Option<i16>>)
Int32(DataRef<'a, i32>)
OptInt32(DataRef<'a, Option<i32>>)
Int64(DataRef<'a, i64>)
OptInt64(DataRef<'a, Option<i64>>)
UInt8(DataRef<'a, u8>)
OptUInt8(DataRef<'a, Option<u8>>)
UInt16(DataRef<'a, u16>)
OptUInt16(DataRef<'a, Option<u16>>)
UInt32(DataRef<'a, u32>)
OptUInt32(DataRef<'a, Option<u32>>)
UInt64(DataRef<'a, u64>)
OptUInt64(DataRef<'a, Option<u64>>)
Float32(DataRef<'a, f32>)
OptFloat32(DataRef<'a, Option<f32>>)
Float64(DataRef<'a, f64>)
OptFloat64(DataRef<'a, Option<f64>>)
Date(DataRef<'a, Date>)
OptDate(DataRef<'a, Option<Date>>)
Bytes(DataRef<'a, Vec<u8>>)
OptBytes(DataRef<'a, Option<Vec<u8>>>)
String(DataRef<'a, String>)
OptString(DataRef<'a, Option<String>>)
Jsonb(DataRef<'a, Jsonb>)
OptJsonb(DataRef<'a, Option<Jsonb>>)
MzTimestamp(DataRef<'a, Timestamp>)
OptMzTimestamp(DataRef<'a, Option<Timestamp>>)
Todo(DataRef<'a, ProtoDatumToPersist>)
OptTodo(DataRef<'a, NullableProtoDatumToPersist>)
NoStats(NoStats)
Trait Implementations§
source§impl<'a> DatumDecoderT<'a> for DatumDecoder<'a>
impl<'a> DatumDecoderT<'a> for DatumDecoder<'a>
source§impl<'a> Debug for DatumDecoder<'a>
impl<'a> Debug for DatumDecoder<'a>
source§impl<'a> From<DataRef<'a, NullableProtoDatumToPersist>> for DatumDecoder<'a>
impl<'a> From<DataRef<'a, NullableProtoDatumToPersist>> for DatumDecoder<'a>
source§fn from(v: DataRef<'a, NullableProtoDatumToPersist>) -> DatumDecoder<'a>
fn from(v: DataRef<'a, NullableProtoDatumToPersist>) -> DatumDecoder<'a>
Converts to this type from the input type.
source§impl<'a> From<DataRef<'a, ProtoDatumToPersist>> for DatumDecoder<'a>
impl<'a> From<DataRef<'a, ProtoDatumToPersist>> for DatumDecoder<'a>
source§fn from(v: DataRef<'a, ProtoDatumToPersist>) -> DatumDecoder<'a>
fn from(v: DataRef<'a, ProtoDatumToPersist>) -> DatumDecoder<'a>
Converts to this type from the input type.
source§impl<'a> From<NoStats> for DatumDecoder<'a>
impl<'a> From<NoStats> for DatumDecoder<'a>
source§fn from(v: NoStats) -> DatumDecoder<'a>
fn from(v: NoStats) -> DatumDecoder<'a>
Converts to this type from the input type.
source§impl<'a> TryInto<DataRef<'a, NullableProtoDatumToPersist>> for DatumDecoder<'a>
impl<'a> TryInto<DataRef<'a, NullableProtoDatumToPersist>> for DatumDecoder<'a>
source§impl<'a> TryInto<DataRef<'a, ProtoDatumToPersist>> for DatumDecoder<'a>
impl<'a> TryInto<DataRef<'a, ProtoDatumToPersist>> for DatumDecoder<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for DatumDecoder<'a>
impl<'a> Send for DatumDecoder<'a>
impl<'a> Sync for DatumDecoder<'a>
impl<'a> Unpin for DatumDecoder<'a>
impl<'a> UnwindSafe for DatumDecoder<'a>
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
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.