pub enum DataType {
Show 18 variants
Int64,
Float64,
Numeric(Option<(u32, Option<u32>)>),
BigNumeric(Option<(u32, Option<u32>)>),
Bool,
String(Option<u64>),
Bytes(Option<u64>),
Date,
Datetime,
Time,
Timestamp,
Interval,
Json,
Geography,
Array(Box<DataType>),
Struct(Vec<StructField>),
Range(Box<DataType>),
Other(String),
}Expand description
A GoogleSQL data type. Aliases (INT, INTEGER, DECIMAL, …) map to the canonical type.
Variants§
Int64
Float64
Numeric(Option<(u32, Option<u32>)>)
BigNumeric(Option<(u32, Option<u32>)>)
Bool
String(Option<u64>)
Bytes(Option<u64>)
Date
Datetime
Time
Timestamp
Interval
Json
Geography
Array(Box<DataType>)
Struct(Vec<StructField>)
Range(Box<DataType>)
Other(String)
Any other name (a user-defined or future type), upper-cased as written.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataType
impl<'de> Deserialize<'de> for DataType
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Forget for DataType
impl Freeze for DataTypewhere
*const DataType is !null: Freeze,
PhantomData<DataType>: Freeze,
*const u8 is !null: Freeze,
PhantomData<StructField>: Freeze,
PhantomData<u8>: Freeze,
impl Move for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataTypewhere
*const DataType is !null: UnsafeUnpin,
PhantomData<DataType>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<StructField>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for DataTypewhere
BoxRaw<DataType>: UnwindSafe,
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
BoxRaw<Function>: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.