pub enum SqlDatatype {
Show 19 variants
Tinyint(u32, SqlSigned),
Smallint(u32, SqlSigned),
Mediumint(u32, SqlSigned),
Int(u32, SqlSigned),
Bigint(u32, SqlSigned),
Float(u32, u32, SqlSigned),
Double(u32, u32, SqlSigned),
Decimal(u32, u32, SqlSigned),
Date,
Time,
Datetime,
Timestamp,
Char(u32),
Varchar(u32),
Text(u32),
Binary(u32),
Varbinary(u32),
Enum(Vec<String>),
Set(Vec<String>),
}
Expand description
Basic SQL datatypes, defaults to VARCHAR(45)
Variants§
Tinyint(u32, SqlSigned)
Smallint(u32, SqlSigned)
Mediumint(u32, SqlSigned)
Int(u32, SqlSigned)
Bigint(u32, SqlSigned)
Float(u32, u32, SqlSigned)
Double(u32, u32, SqlSigned)
Decimal(u32, u32, SqlSigned)
Date
Time
Datetime
Timestamp
Char(u32)
Varchar(u32)
Text(u32)
Binary(u32)
Varbinary(u32)
Enum(Vec<String>)
Set(Vec<String>)
Implementations§
Trait Implementations§
source§impl Clone for SqlDatatype
impl Clone for SqlDatatype
source§fn clone(&self) -> SqlDatatype
fn clone(&self) -> SqlDatatype
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SqlDatatype
impl Debug for SqlDatatype
source§impl Default for SqlDatatype
impl Default for SqlDatatype
source§impl<'de> Deserialize<'de> for SqlDatatype
impl<'de> Deserialize<'de> for SqlDatatype
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
source§impl From<&SqlDatatype> for JsonDatatype
impl From<&SqlDatatype> for JsonDatatype
source§fn from(value: &SqlDatatype) -> Self
fn from(value: &SqlDatatype) -> Self
Converts to this type from the input type.
source§impl From<&SqlDatatype> for RustDatatype
impl From<&SqlDatatype> for RustDatatype
source§fn from(value: &SqlDatatype) -> Self
fn from(value: &SqlDatatype) -> Self
Converts to this type from the input type.
source§impl FromStr for SqlDatatype
impl FromStr for SqlDatatype
source§impl PartialEq for SqlDatatype
impl PartialEq for SqlDatatype
source§fn eq(&self, other: &SqlDatatype) -> bool
fn eq(&self, other: &SqlDatatype) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SqlDatatype
impl Serialize for SqlDatatype
source§impl TryFrom<&str> for SqlDatatype
impl TryFrom<&str> for SqlDatatype
impl StructuralPartialEq for SqlDatatype
Auto Trait Implementations§
impl RefUnwindSafe for SqlDatatype
impl Send for SqlDatatype
impl Sync for SqlDatatype
impl Unpin for SqlDatatype
impl UnwindSafe for SqlDatatype
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