pub enum DataType {
Show 21 variants
SmallInt,
Integer,
BigInt,
Decimal {
precision: Option<u8>,
scale: Option<u8>,
},
Numeric {
precision: Option<u8>,
scale: Option<u8>,
},
Real,
DoublePrecision,
Char(Option<u32>),
VarChar(Option<u32>),
Text,
ByteA,
Date,
Time,
Timestamp,
TimestampTZ,
Boolean,
UUID,
JSON,
JSONB,
Array(Box<DataType>),
Custom(String),
}Expand description
Supported data types
Variants§
SmallInt
Integer
BigInt
Decimal
Numeric
Real
DoublePrecision
Char(Option<u32>)
VarChar(Option<u32>)
Text
ByteA
Date
Time
Timestamp
TimestampTZ
Boolean
UUID
JSON
JSONB
Array(Box<DataType>)
Custom(String)
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 Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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