#[non_exhaustive]#[repr(i32)]pub enum TypeCode {
Show 18 variants
Unspecified = 0,
Bool = 1,
Int64 = 2,
Float64 = 3,
Float32 = 15,
Timestamp = 4,
Date = 5,
String = 6,
Bytes = 7,
Array = 8,
Struct = 9,
Numeric = 10,
Json = 11,
Proto = 13,
Enum = 14,
Interval = 16,
Uuid = 17,
Unknown(i32),
}Expand description
Spanner type code.
Maps directly to the gRPC type codes defined in
crate::generated::gapic_dataplane::model::TypeCode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unspecified = 0
Not specified.
Bool = 1
Spanner Bool data type.
Int64 = 2
Spanner Int64 data type.
Float64 = 3
Spanner Float64 data type.
Float32 = 15
Spanner Float32 data type.
Timestamp = 4
Spanner Timestamp data type.
Date = 5
Spanner Date data type.
String = 6
Spanner String data type.
Bytes = 7
Spanner Bytes data type.
Array = 8
Spanner Array data type.
Struct = 9
Spanner Struct data type.
Numeric = 10
Spanner Numeric data type.
Json = 11
Spanner Json data type.
Proto = 13
Spanner Proto data type.
Enum = 14
Spanner Enum data type.
Interval = 16
Spanner Interval data type.
Uuid = 17
Spanner Uuid data type.
Unknown(i32)
An unknown or unsupported type code value.
Trait Implementations§
impl Copy for TypeCode
impl Eq for TypeCode
impl StructuralPartialEq for TypeCode
Auto Trait Implementations§
impl Freeze for TypeCode
impl RefUnwindSafe for TypeCode
impl Send for TypeCode
impl Sync for TypeCode
impl Unpin for TypeCode
impl UnsafeUnpin for TypeCode
impl UnwindSafe for TypeCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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