[][src]Enum gcp_client::google::cloud::bigquery::v2::standard_sql_data_type::TypeKind

#[repr(i32)]pub enum TypeKind {
    Unspecified,
    Int64,
    Bool,
    Float64,
    String,
    Bytes,
    Timestamp,
    Date,
    Time,
    Datetime,
    Geography,
    Numeric,
    Array,
    Struct,
}

Variants

Unspecified

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.

Bytes

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.

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.

Implementations

impl TypeKind[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of TypeKind.

pub fn from_i32(value: i32) -> Option<TypeKind>[src]

Converts an i32 to a TypeKind, or None if value is not a valid variant.

Trait Implementations

impl Clone for TypeKind[src]

impl Copy for TypeKind[src]

impl Debug for TypeKind[src]

impl Default for TypeKind[src]

impl Eq for TypeKind[src]

impl From<TypeKind> for i32[src]

impl Hash for TypeKind[src]

impl Ord for TypeKind[src]

impl PartialEq<TypeKind> for TypeKind[src]

impl PartialOrd<TypeKind> for TypeKind[src]

impl StructuralEq for TypeKind[src]

impl StructuralPartialEq for TypeKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]