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

Tiny

Sets buffer_type to MYSQL_TYPE_TINY

Short

Sets buffer_type to MYSQL_TYPE_SHORT

Long

Sets buffer_type to MYSQL_TYPE_LONG

LongLong

Sets buffer_type to MYSQL_TYPE_LONGLONG

Float

Sets buffer_type to MYSQL_TYPE_FLOAT

Double

Sets buffer_type to MYSQL_TYPE_DOUBLE

Time

Sets buffer_type to MYSQL_TYPE_TIME

Date

Sets buffer_type to MYSQL_TYPE_DATE

DateTime

Sets buffer_type to MYSQL_TYPE_DATETIME

Timestamp

Sets buffer_type to MYSQL_TYPE_TIMESTAMP

String

Sets buffer_type to MYSQL_TYPE_STRING

Blob

Sets buffer_type to MYSQL_TYPE_BLOB

Trait Implementations

impl Clone for MysqlType[src]

impl Copy for MysqlType[src]

impl Eq for MysqlType[src]

impl Hash for MysqlType[src]

impl PartialEq<MysqlType> for MysqlType[src]

impl StructuralEq for MysqlType[src]

impl StructuralPartialEq for MysqlType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.