Enum diesel::mysql::MysqlType [−][src]
pub enum MysqlType {
Tiny,
Short,
Long,
LongLong,
Float,
Double,
Time,
Date,
DateTime,
Timestamp,
String,
Blob,
}Represents the possible forms a bind parameter can be transmitted as. Each variant represents one of the forms documented at https://dev.mysql.com/doc/refman/5.7/en/c-api-prepared-statement-type-codes.html
The null variant is omitted, as we will never prepare a statement in which one of the bind parameters can always be NULL
Variants
TinySets buffer_type to MYSQL_TYPE_TINY
ShortSets buffer_type to MYSQL_TYPE_SHORT
LongSets buffer_type to MYSQL_TYPE_LONG
LongLongSets buffer_type to MYSQL_TYPE_LONGLONG
FloatSets buffer_type to MYSQL_TYPE_FLOAT
DoubleSets buffer_type to MYSQL_TYPE_DOUBLE
TimeSets buffer_type to MYSQL_TYPE_TIME
DateSets buffer_type to MYSQL_TYPE_DATE
DateTimeSets buffer_type to MYSQL_TYPE_DATETIME
TimestampSets buffer_type to MYSQL_TYPE_TIMESTAMP
StringSets buffer_type to MYSQL_TYPE_STRING
BlobSets buffer_type to MYSQL_TYPE_BLOB
Trait Implementations
impl Hash for MysqlType[src]
impl Hash for MysqlTypefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl PartialEq for MysqlType[src]
impl PartialEq for MysqlTypefn eq(&self, other: &MysqlType) -> bool[src]
fn eq(&self, other: &MysqlType) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for MysqlType[src]
impl Eq for MysqlTypeimpl Clone for MysqlType[src]
impl Clone for MysqlTypefn clone(&self) -> MysqlType[src]
fn clone(&self) -> MysqlTypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for MysqlType[src]
impl Copy for MysqlType