pub enum TypeKind {
Show 15 variants
TypeKindUnspecified,
Int64,
Bool,
Float64,
String,
Byte,
Timestamp,
Date,
Time,
Datetime,
Geography,
Numeric,
Bignumeric,
Array,
Struct,
}
Expand description
Required. The top level type of this field. Can be any standard SQL data type (e.g., “INT64”, “DATE”, “ARRAY”).
Variants§
TypeKindUnspecified
Invalid type.
Int64
Encoded as a string in decimal format.
Bool
Encoded as a boolean “false” or “true”.
Float64
Encoded as a number, or string “NaN”, “Infinity” or “-Infinity”.
String
Encoded as a string value.
Byte
Encoded as a base64 string per RFC 4648, section 4.
Timestamp
Encoded as an RFC 3339 timestamp with mandatory “Z” time zone string: 1985-04-12T23:20:50.52Z
Date
Encoded as RFC 3339 full-date format string: 1985-04-12
Time
Encoded as RFC 3339 partial-time format string: 23:20:50.52
Datetime
Encoded as RFC 3339 full-date “T” partial-time: 1985-04-12T23:20:50.52
Geography
Encoded as WKT
Numeric
Encoded as a decimal string.
Bignumeric
Encoded as a decimal string.
Array
Encoded as a list with types matching Type.array_type.
Struct
Encoded as a list with fields of type Type.struct_type[i]. List is used because a JSON object cannot have duplicate field names.
Trait Implementations§
source§impl<'de> Deserialize<'de> for TypeKind
impl<'de> Deserialize<'de> for TypeKind
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for TypeKind
impl RefUnwindSafe for TypeKind
impl Send for TypeKind
impl Sync for TypeKind
impl Unpin for TypeKind
impl UnwindSafe for TypeKind
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
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more