#[non_exhaustive]pub enum MysqlType {
Show 20 variants
Tiny,
UnsignedTiny,
Short,
UnsignedShort,
Long,
UnsignedLong,
LongLong,
UnsignedLongLong,
Float,
Double,
Numeric,
Time,
Date,
DateTime,
Timestamp,
String,
Blob,
Bit,
Set,
Enum,
}
mysql_backend
only.Expand description
Represents possible types, that can be transmitted as via the Mysql wire protocol
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Tiny
A 8 bit signed integer
UnsignedTiny
A 8 bit unsigned integer
Short
A 16 bit signed integer
UnsignedShort
A 16 bit unsigned integer
Long
A 32 bit signed integer
UnsignedLong
A 32 bit unsigned integer
LongLong
A 64 bit signed integer
UnsignedLongLong
A 64 bit unsigned integer
Float
A 32 bit floating point number
Double
A 64 bit floating point number
Numeric
A fixed point decimal value
Time
A datatype to store a time value
Date
A datatype to store a date value
DateTime
A datatype containing timestamp values ranging from ‘1000-01-01 00:00:00’ to ‘9999-12-31 23:59:59’.
Timestamp
A datatype containing timestamp values ranging from 1970-01-01 00:00:01’ UTC to ‘2038-01-19 03:14:07’ UTC.
String
A datatype for string values
Blob
A datatype containing binary large objects
Bit
A value containing a set of bit’s
Set
A user defined set type
Enum
A user defined enum type
Trait Implementations§
Source§impl From<(enum_field_types, Flags)> for MysqlType
Available on crate feature mysql
only.
impl From<(enum_field_types, Flags)> for MysqlType
mysql
only.Source§fn from((tpe, flags): (enum_field_types, Flags)) -> Self
fn from((tpe, flags): (enum_field_types, Flags)) -> Self
Source§impl From<MysqlType> for (enum_field_types, Flags)
Available on crate feature mysql
only.
impl From<MysqlType> for (enum_field_types, Flags)
mysql
only.