[][src]Enum diesel::mysql::MysqlType

#[non_exhaustive]pub enum MysqlType {
    Tiny,
    UnsignedTiny,
    Short,
    UnsignedShort,
    Long,
    UnsignedLong,
    LongLong,
    UnsignedLongLong,
    Float,
    Double,
    Numeric,
    Time,
    Date,
    DateTime,
    Timestamp,
    String,
    Blob,
    Bit,
    Set,
    Enum,
}

Represents possible types, that can be transmitted as via the Mysql wire protocol

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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

impl Clone for MysqlType[src]

impl Copy for MysqlType[src]

impl Debug for MysqlType[src]

impl Eq for MysqlType[src]

impl From<(enum_field_types, Flags)> for MysqlType[src]

impl From<MysqlType> for (enum_field_types, Flags)[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

impl RefUnwindSafe for MysqlType

impl Send for MysqlType

impl Sync for MysqlType

impl Unpin for MysqlType

impl UnwindSafe for MysqlType

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]